From a199ffecc0f8fbec14edc0fb80b5f95b784af16a Mon Sep 17 00:00:00 2001 From: Ourai Lin Date: Thu, 12 Sep 2024 02:59:21 +0800 Subject: [PATCH] fix: Next.js base path --- .knosys/sites/default/next.config.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.knosys/sites/default/next.config.mjs b/.knosys/sites/default/next.config.mjs index 0299ccade..2e8f440e8 100644 --- a/.knosys/sites/default/next.config.mjs +++ b/.knosys/sites/default/next.config.mjs @@ -1,6 +1,9 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - output: process.env.NODE_ENV === 'production' ? 'export' : undefined, + ...(process.env.NODE_ENV === 'production' ? { + basePath: '/Web3-Frontend-Bootcamp', + output: 'export', + } : undefined), reactStrictMode: true, };