added PWA
This commit is contained in:
parent
07e52d26ce
commit
2fa3ec2f95
21 changed files with 2682 additions and 42365 deletions
|
|
@ -1,14 +1,28 @@
|
|||
// next.config.js
|
||||
module.exports = {
|
||||
// ... rest of the configuration.
|
||||
// // 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",
|
||||
async redirects() {
|
||||
return [
|
||||
{
|
||||
source: "/",
|
||||
destination: "/home",
|
||||
permanent: true,
|
||||
},
|
||||
]
|
||||
},
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue