|
@@ -1,6 +1,9 @@
|
|
|
-const withBundleAnalyzer = require("@next/bundle-analyzer")({
|
|
|
- enabled: process.env.ANALYZE === "true",
|
|
|
-});
|
|
|
+const withBundleAnalyzer =
|
|
|
+ process.env.ANALYZE === "true"
|
|
|
+ ? require("@next/bundle-analyzer")({
|
|
|
+ enabled: process.env.ANALYZE === "true",
|
|
|
+ })()
|
|
|
+ : x => x;
|
|
|
|
|
|
/**
|
|
|
* @type {import('next').NextConfig}
|