Selaa lähdekoodia

update next config

Aykut Saraç 3 vuotta sitten
vanhempi
commit
0cdb002fcd
1 muutettua tiedostoa jossa 9 lisäystä ja 7 poistoa
  1. 9 7
      next.config.js

+ 9 - 7
next.config.js

@@ -1,15 +1,17 @@
-const withTM = require('next-transpile-modules')(['reaflow']);
+const withTM = require("next-transpile-modules")(["reaflow"]);
 
-/** @type {import('next').NextConfig} */
 const nextConfig = withTM({
   exportPathMap: () => ({
-    '/': { page: '/' },
-    '/editor': { page: '/editor' },
+    "/": { page: "/" },
+    "/editor": { page: "/editor" },
   }),
-  trailingSlash: true,
   experimental: {
-    esmExternals: 'loose'
-  }
+    esmExternals: "loose",
+  },
+  compiler: {
+    styledComponents: true,
+    swcMinify: true,
+  },
 });
 
 module.exports = nextConfig;