next.config.js 498 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: "/Home" },
  9. "/editor": { page: "/Editor", query: { title: "json" } },
  10. "/widget": { page: "/Widget", query: { title: "json" } },
  11. }),
  12. pwa: {
  13. disable: true, // disable temp until issue #61 solved
  14. dest: "public",
  15. fallbacks: {
  16. document: "/editor",
  17. },
  18. },
  19. };
  20. module.exports = withPWA(nextConfig);