Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

Update next.config.js

Aykut Saraç0126cd37e8c1
diff --git a/next.config.js b/next.config.js
index 0b271c4e..cb945ff2 100644
--- a/next.config.js
+++ b/next.config.js
@@ -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}