Skip to content

Commit

Permalink
test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroBailaAndrade committed Jan 8, 2024
1 parent 8836226 commit bf983e7
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.filenameMap.size > 0) {
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 bf983e7

Please sign in to comment.