jsoncrack.com/next.config.js
2022-04-27 14:37:13 +03:00

24 lines
405 B
JavaScript

const withPWA = require("next-pwa");
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
exportPathMap: () => ({
"/": { page: "/" },
"/editor": { page: "/editor" },
}),
compiler: {
styledComponents: true,
},
pwa: {
dest: "public",
register: true,
scope: "/editor",
},
};
module.exports = withPWA(nextConfig);