next.config.js 364 B

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