feat: dont' use sw for now
This commit is contained in:
parent
3906325662
commit
8b71f6ab69
1 changed files with 13 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
|||
import { defineConfig } from 'astro/config';
|
||||
import serviceWorker from '@ayco/astro-sw';
|
||||
// import serviceWorker from '@ayco/astro-sw';
|
||||
import sitemap from "@astrojs/sitemap";
|
||||
|
||||
// https://astro.build/config
|
||||
|
@ -7,17 +7,17 @@ export default defineConfig({
|
|||
site: 'https://ayo.ayco.io',
|
||||
integrations: [
|
||||
sitemap(),
|
||||
serviceWorker({
|
||||
path: './src/sw.mjs',
|
||||
assetCachePrefix: 'ayco-personal-site',
|
||||
assetCacheVersionID: 'hey-mama',
|
||||
logAssets: true,
|
||||
excludeRoutes: [
|
||||
'/threads'
|
||||
],
|
||||
esbuild: {
|
||||
minify: true
|
||||
}
|
||||
})
|
||||
// serviceWorker({
|
||||
// path: './src/sw.mjs',
|
||||
// assetCachePrefix: 'ayco-personal-site',
|
||||
// assetCacheVersionID: 'hey-mama',
|
||||
// logAssets: true,
|
||||
// excludeRoutes: [
|
||||
// '/threads'
|
||||
// ],
|
||||
// esbuild: {
|
||||
// minify: true
|
||||
// }
|
||||
// })
|
||||
]
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue