✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
feat: update next config for better local hosting
AykutSaraca046ef4a165e
diff --git a/next.config.js b/next.config.jsindex c7becdff..cf7b712d 100644--- a/next.config.js+++ b/next.config.js@@ -29,21 +29,27 @@ const config = {},};-const bundleAnalyzerConfig = withBundleAnalyzer(config);+const configExport = () => {+ if (process.env.ANALYZE === "true") return withBundleAnalyzer(config);-const sentryConfig = withSentryConfig(- config,- {- silent: true,- org: "aykut-sarac",- project: "json-crack",- },- {- widenClientFileUpload: true,- hideSourceMaps: true,- disableLogger: true,- disableServerWebpackPlugin: true,+ if (process.env.GITHUB_REPOSITORY === "AykutSarac/jsoncrack.com") {+ return withSentryConfig(+ config,+ {+ silent: true,+ org: "aykut-sarac",+ project: "json-crack",+ },+ {+ widenClientFileUpload: true,+ hideSourceMaps: true,+ disableLogger: true,+ disableServerWebpackPlugin: true,+ }+ );}-);-module.exports = process.env.ANALYZE === "true" ? bundleAnalyzerConfig : sentryConfig;+ return config;+};++module.exports = configExport();