Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroBailaAndrade committed Jan 8, 2024
1 parent 2b75180 commit 9fb1f0b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions workspaces/cms-scripts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,13 @@ for (const data of roadmapPosts.filenameMap.values()) {
);
}

for (const data of announcements.filenameMap.values()) {
await write(
`public/data/announcements/${data.locale}/${data.slug}.json`,
data
);
if (!!announcements) {
for (const data of announcements.filenameMap.values()) {
await write(
`public/data/announcements/${data.locale}/${data.slug}.json`,
data
);
}
}

for (const locale of locales) {
Expand Down

0 comments on commit 9fb1f0b

Please sign in to comment.