These settings were made to integrate custom functions with the service worker.
Go to the serviceWorker
file in the project and make the following change.
const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
// to
const swUrl = `${process.env.PUBLIC_URL}/sw.js`;