K
K
kirillleogky2021-02-25 15:19:23
React
kirillleogky, 2021-02-25 15:19:23

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,
      },
    ]
  },
})


My 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"
}


Ho when I run next start Lighthouse swears:
603795b0d65ec318501554.png

How to solve this error - start_url does not respond with a 200 when offline?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question