next.config.js 386 B

12345678910111213141516171819202122
  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. scope: "/editor",
  18. },
  19. };
  20. module.exports = withPWA(nextConfig);