diff --git a/astro.config.mjs b/astro.config.mjs index 9a33df9..e1acfab 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -3,14 +3,13 @@ import node from "@astrojs/node"; import serviceWorker from "./index.js"; export default defineConfig({ - // output: "server", - // adapter: node({ - // mode: "middleware" - // }), + output: "server", + adapter: node({ + mode: "middleware" + }), site: 'https://ayo.ayco.io', integrations: [ serviceWorker({ - path: "./example_sw.js", assetCachePrefix: 'cozy-reader', customRoutes: [ '/threads' diff --git a/index.js b/index.js index b7da809..001dda8 100644 --- a/index.js +++ b/index.js @@ -13,21 +13,20 @@ const ASTROSW = 'astro-sw'; /** * @typedef {import('astro').AstroIntegration} AstroIntegration * @typedef {import('esbuild').BuildOptions} BuildOptions - * @typedef {{ - * path: string, - * assetCachePrefix?: string, - * assetCacheVersionID?: string, - * customRoutes?: Array, - * excludeRoutes?: Array