From d1cb62304d5e408b1801ab92d5af87019f07dc24 Mon Sep 17 00:00:00 2001 From: Sergio <77530549+sergi0g@users.noreply.github.com> Date: Wed, 17 Jul 2024 15:10:18 +0300 Subject: [PATCH] docs: Change basePath only in production --- docs/next.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/next.config.js b/docs/next.config.js index 8f84962..e2a3335 100644 --- a/docs/next.config.js +++ b/docs/next.config.js @@ -9,7 +9,7 @@ module.exports = withNextra( images: { unoptimized: true }, - basePath: '/cup' + basePath: process.env.NODE_ENV == 'production' ? '/cup' : '' } );