next.config.js 451 B

123456789101112131415161718192021
  1. const withPWA = require("next-pwa")({
  2. dest: "public",
  3. register: true,
  4. disable: process.env.NODE_ENV === "development",
  5. scope: "/editor",
  6. });
  7. /**
  8. * @type {import('next').NextConfig}
  9. */
  10. const nextConfig = {
  11. reactStrictMode: true,
  12. exportPathMap: async () => ({
  13. "/": { page: "/" },
  14. "/editor": { page: "/Editor" },
  15. "/widget": { page: "/Widget" },
  16. "/embed": { page: "/Embed" },
  17. }),
  18. };
  19. module.exports = withPWA(nextConfig);