mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-12 19:02:53 +08:00
26 lines
509 B
JavaScript
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);
|