mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Configure for layer0 deployment
This commit is contained in:
parent
f252322ccc
commit
a8842fbb41
4 changed files with 32 additions and 0 deletions
9
sw/service-worker.js
Normal file
9
sw/service-worker.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { skipWaiting, clientsClaim } from 'workbox-core'
|
||||
import { precacheAndRoute } from 'workbox-precaching'
|
||||
import { Prefetcher } from '@layer0/prefetch/sw'
|
||||
|
||||
skipWaiting()
|
||||
clientsClaim()
|
||||
precacheAndRoute(self.__WB_MANIFEST || [])
|
||||
|
||||
new Prefetcher().route()
|
||||
Loading…
Add table
Add a link
Reference in a new issue