From 0a630858ffe457b8655ca22eddd40ee5f12b8f36 Mon Sep 17 00:00:00 2001 From: yeonseong Date: Fri, 4 Oct 2024 21:15:30 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20info/*=20=EB=A1=9C=20=EC=A7=81?= =?UTF-8?q?=EC=A0=91=EC=A0=91=EA=B7=BC=ED=95=98=EB=A9=B4=20=EA=B9=A8?= =?UTF-8?q?=EC=A7=80=EB=8A=94=20=EB=B2=84=EA=B7=B8=20=ED=95=AB=ED=94=BD?= =?UTF-8?q?=EC=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 0efdae0c..fae2dad4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -21,35 +21,35 @@ export default defineConfig(({ mode }) => { const env = loadEnv(mode, process.cwd(), ""); const port = parseInt(env.PORT, 10); // TODO: 추후 모든 책들의 id 추가. /info/* - const pagesForPrerender = ["/"]; + // const pagesForPrerender = ["/"]; return { /** @see https://vitejs.dev/plugins/ */ plugins: [ react(), tsconfigPaths(), - prerender({ - routes: pagesForPrerender, - renderer: "@prerenderer/renderer-puppeteer", - server: { - "host": 'localhost', - "port": port, - "listenHost": 'localhost', - }, - rendererOptions: { - maxConcurrentRoutes: 1, - renderAfterTime: 5000, + // prerender({ + // routes: pagesForPrerender, + // renderer: "@prerenderer/renderer-puppeteer", + // server: { + // "host": 'localhost', + // "port": port, + // "listenHost": 'localhost', + // }, + // rendererOptions: { + // maxConcurrentRoutes: 1, + // renderAfterTime: 5000, - }, - postProcess(renderedRoute) { - renderedRoute.html = renderedRoute.html - .replace(/http:/i, "https:") - .replace( - /(https:\/\/)?(localhost|127\.0\.0\.1):\d*/i, - "https://42library.kr", - ); - }, - }), + // }, + // postProcess(renderedRoute) { + // renderedRoute.html = renderedRoute.html + // .replace(/http:/i, "https:") + // .replace( + // /(https:\/\/)?(localhost|127\.0\.0\.1):\d*/i, + // "https://42library.kr", + // ); + // }, + // }), ], envPrefix,