jsoncrack.com/next.config.js
2022-07-23 14:07:09 +03:00

27 lines
545 B
JavaScript

const withPWA = require("next-pwa");
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
reactStrictMode: true,
exportPathMap: () => ({
"/": { page: "/" },
"/editor": { page: "/Editor" },
"/widget": { page: "/Widget" },
}),
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);