next.config.js 424 B

123456789101112131415161718192021222324
  1. const withPWA = require("next-pwa");
  2. /**
  3. * @type {import('next').NextConfig}
  4. */
  5. const nextConfig = {
  6. reactStrictMode: true,
  7. swcMinify: true,
  8. exportPathMap: () => ({
  9. "/": { page: "/" },
  10. "/editor": { page: "/editor" },
  11. }),
  12. compiler: {
  13. styledComponents: true,
  14. },
  15. pwa: {
  16. disable: true,
  17. dest: "public",
  18. register: true,
  19. scope: "/editor",
  20. },
  21. };
  22. module.exports = withPWA(nextConfig);