mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-27 15:22:56 +08:00
22 lines
478 B
JavaScript
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);
|