next.config.js 478 B

123456789101112131415161718192021222324
  1. const withTM = require("next-transpile-modules")(["reaflow", "next-pwa"]);
  2. const nextConfig = withTM({
  3. reactStrictMode: true,
  4. exportPathMap: () => ({
  5. "/": { page: "/" },
  6. "/editor": { page: "/editor" },
  7. }),
  8. experimental: {
  9. esmExternals: "loose",
  10. outputStandalone: true,
  11. },
  12. compiler: {
  13. styledComponents: true,
  14. swcMinify: true,
  15. },
  16. pwa: {
  17. dest: "public",
  18. register: true,
  19. skipWaiting: true,
  20. },
  21. });
  22. module.exports = nextConfig;