import { precacheAndRoute, createHandlerBoundToURL } from 'workbox-precaching' import { NavigationRoute, registerRoute } from 'workbox-routing' precacheAndRoute(self.__WB_MANIFEST) // SPA fallback: navigate requests that don't match a cached asset serve index.html. // No push-notification handlers here — unlike tasks/wages, this app has nothing to // push (the reception display just polls; the admin page has no reminders). registerRoute( new NavigationRoute(createHandlerBoundToURL('/weather/index.html'), { denylist: [/\/api\//], }) )