mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-20 05:12:54 +08:00
23 lines
494 B
JavaScript
23 lines
494 B
JavaScript
const withPWA = require("next-pwa");
|
|
|
|
/**
|
|
* @type {import('next').NextConfig}
|
|
*/
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
exportPathMap: () => ({
|
|
"/": { page: "/" },
|
|
"/editor": { page: "/Editor", query: { title: "json" } },
|
|
"/widget": { page: "/Widget", query: { title: "json" } },
|
|
}),
|
|
pwa: {
|
|
disable: true, // disable temp until issue #61 solved
|
|
dest: "public",
|
|
fallbacks: {
|
|
document: "/editor",
|
|
},
|
|
},
|
|
};
|
|
|
|
module.exports = withPWA(nextConfig);
|