next.config.js 545 B

1234567891011121314151617181920212223242526
  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. "/widget": { page: "/Widget" },
  11. }),
  12. compiler: {
  13. styledComponents: true,
  14. },
  15. pwa: {
  16. // disable: process.env.NODE_ENV === "development",
  17. disable: true, // disable temp until issue #61 solved
  18. dest: "public",
  19. fallbacks: {
  20. document: "/editor",
  21. },
  22. },
  23. };
  24. module.exports = withPWA(nextConfig);