chore: update README.md

This commit is contained in:
Ayo Ayco 2024-08-16 18:25:40 +02:00 committed by GitHub
parent 48406deafb
commit ee5021d78d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,18 +24,12 @@ Example `astro.config.mjs`
```js ```js
import { defineConfig } from "astro/config"; import { defineConfig } from "astro/config";
import node from "@astrojs/node";
import serviceWorker from "@ayco/astro-sw"; import serviceWorker from "@ayco/astro-sw";
export default defineConfig({ export default defineConfig({
output: "server",
adapter: node({
mode: "middleware"
}),
integrations: [ integrations: [
serviceWorker({ serviceWorker({
path: "./src/sw.js", path: "./src/sw.js",
assetCachePrefix: 'cozy-reader',
}) })
] ]
}); });