File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import rehypeSlug from "rehype-slug";
88import rehypeAutolinkHeadings from "rehype-autolink-headings" ;
99import metaTags from "astro-meta-tags" ;
1010import deleteUnusedImages from "astro-delete-unused-images" ;
11- import serviceWorker from "astrojs-service-worker" ;
1211import { execSync } from "node:child_process" ;
1312import svelte from "@astrojs/svelte" ;
1413import compress from "astro-compress" ;
@@ -152,29 +151,6 @@ export default defineConfig({
152151 integrations : [
153152 mdx ( ) ,
154153 svelte ( ) ,
155- serviceWorker ( {
156- workbox : {
157- inlineWorkboxRuntime : true ,
158- runtimeCaching : [
159- {
160- urlPattern :
161- / \. (?: j s | c s s | j s o n | p n g | j p g | j p e g | s v g | w o f f 2 ? | t t f | e o t | g i f ) $ / ,
162- handler : "CacheFirst" ,
163- options : {
164- cacheName : "assets-cache" ,
165- expiration : {
166- maxEntries : 100 ,
167- maxAgeSeconds : 60 * 60 * 1 , // 1h
168- } ,
169- } ,
170- } ,
171- {
172- urlPattern : / \. h t m l $ / ,
173- handler : "NetworkOnly" , // ⛔ Don't cache HTML
174- } ,
175- ] ,
176- } ,
177- } ) ,
178154 ...( fastBuild
179155 ? [ ]
180156 : [
You can’t perform that action at this time.
0 commit comments