Answer the question
In order to leave comments, you need to log in
What is the error start_url does not respond with a 200 when offline?
I am using Create React App, Next.js and next-pwa ( https://www.npmjs.com/package/next-pwa )
I configured my next.config.js :
const withPWA = require('next-pwa')
const prod = process.env.NODE_ENV === 'production';
module.exports = withPWA({
pwa: {
dest: 'public',
disable: prod ? false : true,
},
async redirects() {
return [
{
source: '/franchise',
destination: '/franchise/franchising',
permanent: false,
},
{
source: '/musteri-hizmetleri',
destination: '/musteri-hizmetleri/kisisel-verilerin-korunmasi',
permanent: false,
},
]
},
})
{
"short_name": "Little",
"name": "Little",
"icons": [
{
"src": "favicon.png",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon",
"purpose": "maskable"
},
{
"src": "favicon-512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question