Skip to content

Commit

Permalink
feat: apply to build script
Browse files Browse the repository at this point in the history
  • Loading branch information
kyuhho committed Dec 5, 2024
1 parent b865c09 commit deeb46e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions generateSitemap.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ const generateSitemap = async () => {
},
);

console.log(likesResponse);

const likesDynamicRoutes = likesResponse.data.map((post) => ({
url: `/open-consult/${post.postId}`,
changefreq: 'daily',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"scripts": {
"start": "env-cmd -f .env.development react-scripts start",
"start:prod": "env-cmd -f .env react-scripts start",
"build": "react-scripts build",
"build": "node generateSitemap.mjs && react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
Expand Down

0 comments on commit deeb46e

Please sign in to comment.