fix: do not add 404 page to prevent Cache.addAll() error

This commit is contained in:
Ayo Ayco 2024-08-15 19:00:48 +02:00
parent 20bd911262
commit 4dd3941fd5
2 changed files with 4 additions and 0 deletions

View file

@ -117,6 +117,7 @@ export default function serviceWorker(config) {
?? [];
assets = [...new Set([...assets, ..._routes, ..._pages, ..._pagesWithoutEndSlash])]
.filter(asset => !asset.includes('404'));
console.log('>>> assets', assets);
try {

3
src/pages/404.astro Normal file
View file

@ -0,0 +1,3 @@
---
---
404