chore: update README.md
This commit is contained in:
parent
48406deafb
commit
ee5021d78d
1 changed files with 0 additions and 6 deletions
|
@ -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',
|
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue