jsoncrack.com/next.config.js
2022-06-14 17:49:13 +03:00

28 lines
538 B
JavaScript

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