jsoncrack.com/next.config.js

26 lines
509 B
JavaScript
Raw Normal View History

2022-04-27 14:00:47 +03:00
const withPWA = require("next-pwa");
2022-04-27 13:56:24 +03:00
/**
* @type {import('next').NextConfig}
*/
2022-04-27 14:00:47 +03:00
const nextConfig = {
2022-04-16 12:36:58 +03:00
reactStrictMode: true,
2022-02-03 19:56:16 +03:00
exportPathMap: () => ({
2022-03-18 12:01:19 +03:00
"/": { page: "/" },
2022-06-25 19:37:24 +03:00
"/editor": { page: "/Editor" },
2022-02-03 19:56:16 +03:00
}),
2022-03-18 12:01:19 +03:00
compiler: {
styledComponents: true,
},
2022-04-27 14:00:47 +03:00
pwa: {
2022-06-15 17:57:34 +03:00
// disable: process.env.NODE_ENV === "development",
disable: true, // disable temp until issue #61 solved
2022-04-27 14:00:47 +03:00
dest: "public",
2022-04-27 15:32:19 +03:00
fallbacks: {
document: "/editor",
},
2022-04-27 14:00:47 +03:00
},
2022-04-27 13:56:24 +03:00
};
2022-04-27 14:00:47 +03:00
module.exports = withPWA(nextConfig);