jsoncrack.com/next.config.js
2022-06-25 19:37:24 +03:00

26 lines
509 B
JavaScript

const withPWA = require("next-pwa");
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
reactStrictMode: true,
exportPathMap: () => ({
"/": { page: "/" },
"/editor": { page: "/Editor" },
}),
compiler: {
styledComponents: true,
},
pwa: {
// disable: process.env.NODE_ENV === "development",
disable: true, // disable temp until issue #61 solved
dest: "public",
fallbacks: {
document: "/editor",
},
},
};
module.exports = withPWA(nextConfig);