Skip to content

Commit b132714

Browse files
committed
Fix analyze running on devserver
1 parent 657e087 commit b132714

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

next.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import withPlugins from "next-compose-plugins";
33
import withBundleAnalyzer from "next-bundle-analyzer";
44

55
const bundleAnalyzer = withBundleAnalyzer({
6-
enabled: process.env.ANALYZE
6+
enabled: process.env.ANALYZE || false
77
});
88

99

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"scripts": {
66
"dev": "next dev",
77
"build": "next build && next export",
8-
"analyze": "cross-env ANALYZE=true npm run build",
9-
"start": "next start"
8+
"analyze": "cross-env ANALYZE=true npm run build"
109
},
1110
"dependencies": {
1211
"@heroicons/react": "^2.0.16",
@@ -35,4 +34,4 @@
3534
"postcss": "^8.4.21",
3635
"tailwindcss": "^3.2.7"
3736
}
38-
}
37+
}

0 commit comments

Comments
 (0)