next.config.js 417 B

123456789101112131415161718192021222324
  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: "/_offline" },
  10. }),
  11. compiler: {
  12. styledComponents: true,
  13. },
  14. pwa: {
  15. dest: "public",
  16. register: true,
  17. fallbacks: {
  18. document: "/editor",
  19. },
  20. },
  21. };
  22. module.exports = withPWA(nextConfig);