From c955bfb423c5dffb277b4f432c2542f80d07f5d6 Mon Sep 17 00:00:00 2001 From: prjctimg Date: Sun, 15 Oct 2023 13:59:57 +0200 Subject: [PATCH] Added basePath and assetPrefix. --- next.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/next.config.js b/next.config.js index 501f1dd9..f4e61314 100644 --- a/next.config.js +++ b/next.config.js @@ -59,8 +59,11 @@ const securityHeaders = [ **/ module.exports = () => { const plugins = [withContentlayer, withBundleAnalyzer] + const basePath = process.env.NODE_ENV === 'production' ? '/huetiful' : '' return plugins.reduce((acc, next) => next(acc), { + basePath, + assetPrefix: `${basePath}/`, reactStrictMode: true, output: 'export', pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],