jsoncrack.com/next.config.js
2022-09-13 15:34:22 +03:00

21 lines
417 B
JavaScript

const withPWA = require("next-pwa")({
dest: "public",
register: true,
disable: process.env.NODE_ENV === "development",
scope: "/editor",
});
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
reactStrictMode: true,
exportPathMap: async () => ({
"/": { page: "/" },
"/editor": { page: "/Editor" },
"/widget": { page: "/Widget" },
}),
};
module.exports = withPWA(nextConfig);