jsoncrack.com/next.config.js
2022-12-04 00:12:16 +03:00

22 lines
478 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", query: { json: 'string' } },
"/widget": { page: "/widget" },
"/embed": { page: "/embed" },
}),
};
module.exports = withPWA(nextConfig);