如何解决为什么我在离线时看到 start_url 没有响应 200?
我使用 Create React App、Next.js 和 next-pwa (https://www.npmjs.com/package/next-pwa)
我设置我的 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',]
},})
我的public\manifest.json:
{
"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"
}
我该如何解决这个问题:离线时 start_url 没有响应 200??
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。