瀏覽代碼

update config

AykutSarac 3 年之前
父節點
當前提交
1cf090805b
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      next.config.js

+ 5 - 0
next.config.js

@@ -1,16 +1,21 @@
 const withTM = require("next-transpile-modules")(["reaflow"]);
 
 const nextConfig = withTM({
+  reactStrictMode: true,
   exportPathMap: () => ({
     "/": { page: "/" },
     "/editor": { page: "/editor" },
   }),
   experimental: {
     esmExternals: "loose",
+    outputStandalone: true,
   },
   compiler: {
     styledComponents: true,
     swcMinify: true,
+    removeConsole: {
+      exclude: ["error"],
+    },
   },
 });