Merge pull request #1051 from notmd/bundle_analyzer

Setup bundle analyzer
This commit is contained in:
AbdBarho
2023-02-02 10:13:09 +01:00
committed by GitHub
3 changed files with 373 additions and 1 deletions
+6 -1
View File
@@ -24,4 +24,9 @@ const nextConfig = {
},
};
module.exports = nextConfig;
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
openAnalyzer: true,
});
module.exports = withBundleAnalyzer(nextConfig);