Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

🐛 fix: update build maps and rmove production logs

Dillion Verma8390dd17a2f6
diff --git a/next.config.js b/next.config.js
index 026f73b5..c533cf17 100644
--- a/next.config.js
+++ b/next.config.js
@@ -4,9 +4,15 @@ const { withContentlayer } = require("next-contentlayer");
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
+ productionBrowserSourceMaps: true,
experimental: {
optimizeCss: true,
},
+ compiler: {
+ // Remove console.log from production except for error logs
+ removeConsole:
+ process.env.NODE_ENV === "production" ? { exclude: ["error"] } : false,
+ },
images: {
domains: ["localhost", "cdn.magicui.design"],
},