jsoncrack.com/next.config.js
2022-04-27 15:44:05 +03:00

26 lines
468 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",
dest: "public",
register: true,
fallbacks: {
document: "/editor",
},
},
};
module.exports = withPWA(nextConfig);