From 67bfaa435b86931bfb25a5c652905b03b0b9ef67 Mon Sep 17 00:00:00 2001 From: barrystone Date: Fri, 5 Apr 2024 17:53:58 +0800 Subject: [PATCH] [fix] deploy next export issue --- next.config.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/next.config.js b/next.config.js index e357893..f773cf7 100644 --- a/next.config.js +++ b/next.config.js @@ -1,13 +1,14 @@ -const debug = process.env.NODE_ENV !== 'production'; +const debug = process.env.NODE_ENV !== "production"; module.exports = { webpack(config) { config.module.rules.push({ test: /\.svg$/, - use: ['@svgr/webpack'] + use: ["@svgr/webpack"], }); return config; }, - assetPrefix: !debug ? '' : '' + assetPrefix: !debug ? "" : "", + output: "export", };