Skip to content

Commit

Permalink
[fix] deploy next export issue
Browse files Browse the repository at this point in the history
  • Loading branch information
barrystone committed Apr 5, 2024
1 parent f853ad6 commit 67bfaa4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -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",
};

0 comments on commit 67bfaa4

Please sign in to comment.