next.config.js 406 B

1234567891011121314151617181920212223
  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. dest: "public",
  17. register: true,
  18. skipWaiting: true,
  19. },
  20. };
  21. module.exports = withPWA(nextConfig);