2022-09-04 13:01:01 +03:00
|
|
|
const withPWA = require("next-pwa")({
|
|
|
|
dest: "public",
|
|
|
|
register: true,
|
|
|
|
disable: process.env.NODE_ENV === "development",
|
|
|
|
scope: "/editor",
|
|
|
|
});
|
2022-04-27 14:00:47 +03:00
|
|
|
|
2022-04-27 13:56:24 +03:00
|
|
|
/**
|
|
|
|
* @type {import('next').NextConfig}
|
|
|
|
*/
|
2022-04-27 14:00:47 +03:00
|
|
|
const nextConfig = {
|
2022-09-08 23:38:20 +03:00
|
|
|
swcMinify: true,
|
2022-04-16 12:36:58 +03:00
|
|
|
reactStrictMode: true,
|
2022-08-13 12:37:06 +03:00
|
|
|
exportPathMap: async () => ({
|
2022-08-09 16:54:59 +03:00
|
|
|
"/": { page: "/" },
|
2022-08-09 17:03:35 +03:00
|
|
|
"/editor": { page: "/Editor" },
|
|
|
|
"/widget": { page: "/Widget" },
|
2022-02-03 19:56:16 +03:00
|
|
|
}),
|
2022-04-27 13:56:24 +03:00
|
|
|
};
|
2022-04-27 14:00:47 +03:00
|
|
|
|
2022-09-04 13:01:01 +03:00
|
|
|
module.exports = withPWA(nextConfig);
|