next-enterprise/next.config.js
2024-03-13 20:16:29 +01:00

28 lines
567 B
JavaScript

// // next.config.js
// module.exports = {
// // ... rest of the configuration.
// output: "standalone",
// async redirects() {
// return [
// {
// source: "/",
// destination: "/home",
// permanent: true,
// },
// ]
// },
// }
const withPWA = require("next-pwa")({
dest: "public",
swSrc: "public/service-worker.js",
disable: process.env.NODE_ENV === "development",
register: true,
skipWaiting: true,
})
module.exports = withPWA({
reactStrictMode: true,
// next.js config
output: "standalone",
})