feat: dont' use sw for now

This commit is contained in:
Ayo Ayco 2024-09-05 09:31:39 +02:00
parent 3906325662
commit 8b71f6ab69

View file

@ -1,5 +1,5 @@
import { defineConfig } from 'astro/config'; import { defineConfig } from 'astro/config';
import serviceWorker from '@ayco/astro-sw'; // import serviceWorker from '@ayco/astro-sw';
import sitemap from "@astrojs/sitemap"; import sitemap from "@astrojs/sitemap";
// https://astro.build/config // https://astro.build/config
@ -7,17 +7,17 @@ export default defineConfig({
site: 'https://ayo.ayco.io', site: 'https://ayo.ayco.io',
integrations: [ integrations: [
sitemap(), sitemap(),
serviceWorker({ // serviceWorker({
path: './src/sw.mjs', // path: './src/sw.mjs',
assetCachePrefix: 'ayco-personal-site', // assetCachePrefix: 'ayco-personal-site',
assetCacheVersionID: 'hey-mama', // assetCacheVersionID: 'hey-mama',
logAssets: true, // logAssets: true,
excludeRoutes: [ // excludeRoutes: [
'/threads' // '/threads'
], // ],
esbuild: { // esbuild: {
minify: true // minify: true
} // }
}) // })
] ]
}); });