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 ad0115b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions workspaces/cms-scripts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
AnnouncementsPost,
RoadmapDetails,
RoadmapPost,
getAnnouncements,
// getAnnouncements,
getPages,
getPosts,
getRoadmapPosts,
Expand Down Expand Up @@ -187,7 +187,7 @@ for (const simpleFile of simpleFiles) {

const posts = await getPosts();
const roadmapPosts = await getRoadmapPosts();
const announcements = await getAnnouncements();
// const announcements = await getAnnouncements();
const pages = await getPages();
const tutorials = await getTutorials();

Expand Down Expand Up @@ -224,12 +224,12 @@ 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
);
}
// for (const data of announcements.filenameMap.values()) {
// await write(
// `public/data/announcements/${data.locale}/${data.slug}.json`,
// data
// );
// }

for (const locale of locales) {
await fs.mkdir(`public/data/pages/${locale}`, { recursive: true });
Expand Down

0 comments on commit ad0115b

Please sign in to comment.