From deeb46e97e68fa0e62ac55996552e6dd5e80c61e Mon Sep 17 00:00:00 2001 From: kyuhho Date: Thu, 5 Dec 2024 11:51:14 +0900 Subject: [PATCH] feat: apply to build script --- generateSitemap.mjs | 2 -- package.json | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/generateSitemap.mjs b/generateSitemap.mjs index fbc0647c..2f3855b9 100644 --- a/generateSitemap.mjs +++ b/generateSitemap.mjs @@ -60,8 +60,6 @@ const generateSitemap = async () => { }, ); - console.log(likesResponse); - const likesDynamicRoutes = likesResponse.data.map((post) => ({ url: `/open-consult/${post.postId}`, changefreq: 'daily', diff --git a/package.json b/package.json index b9c90622..fc04ea91 100644 --- a/package.json +++ b/package.json @@ -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" },