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";
8
8
import rehypeAutolinkHeadings from "rehype-autolink-headings" ;
9
9
import metaTags from "astro-meta-tags" ;
10
10
import deleteUnusedImages from "astro-delete-unused-images" ;
11
- import serviceWorker from "astrojs-service-worker" ;
12
11
import { execSync } from "node:child_process" ;
13
12
import svelte from "@astrojs/svelte" ;
14
13
import compress from "astro-compress" ;
@@ -152,29 +151,6 @@ export default defineConfig({
152
151
integrations : [
153
152
mdx ( ) ,
154
153
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
- } ) ,
178
154
...( fastBuild
179
155
? [ ]
180
156
: [
You can’t perform that action at this time.
0 commit comments