Browse Source

update config

AykutSarac 2 năm trước cách đây
mục cha
commit
f81f7df64e
1 tập tin đã thay đổi với 3 bổ sung7 xóa
  1. 3 7
      next.config.js

+ 3 - 7
next.config.js

@@ -6,15 +6,11 @@ const withPWA = require("next-pwa");
 const nextConfig = {
   reactStrictMode: true,
   exportPathMap: () => ({
-    "/": { page: "/" },
-    "/editor": { page: "/Editor" },
-    "/widget": { page: "/Widget" },
+    "/": { page: "/Home" },
+    "/editor": { page: "/Editor", query: { title: "json" } },
+    "/widget": { page: "/Widget", query: { title: "json" } },
   }),
-  compiler: {
-    styledComponents: true,
-  },
   pwa: {
-    // disable: process.env.NODE_ENV === "development",
     disable: true, // disable temp until issue #61 solved
     dest: "public",
     fallbacks: {