From b4a7a6bcd08fbb74b7b1f4124883a7b4821a2154 Mon Sep 17 00:00:00 2001 From: storywithoutend Date: Tue, 21 May 2024 16:48:44 +0800 Subject: [PATCH] remove next.config rewrites --- docs/next.config.js | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/next.config.js b/docs/next.config.js index 9678380e..955ebdec 100644 --- a/docs/next.config.js +++ b/docs/next.config.js @@ -43,21 +43,21 @@ const config = { }, async rewrites() { // Rewrite playroom urls for production - if (process.env.NODE_ENV === 'production') - return [ - { - source: '/playroom/preview', - destination: '/playroom/preview/index.html', - }, - { - source: '/playroom/frame.html', - destination: '/playroom/frame.html', - }, - { - source: '/playroom', - destination: '/playroom/index.html', - }, - ] + // if (process.env.NODE_ENV === 'production') + // return [ + // { + // source: '/playroom/preview', + // destination: '/playroom/preview/index.html', + // }, + // { + // source: '/playroom/frame.html', + // destination: '/playroom/frame.html', + // }, + // { + // source: '/playroom', + // destination: '/playroom/index.html', + // }, + // ] return [] }, async redirects() {