Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/florian-lefebvre/astro-capo
Capo.js integration for Astro
https://github.com/florian-lefebvre/astro-capo
Last synced: 23 days ago
JSON representation
Capo.js integration for Astro
- Host: GitHub
- URL: https://github.com/florian-lefebvre/astro-capo
- Owner: florian-lefebvre
- Created: 2023-08-17T15:06:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-19T14:29:16.000Z (over 1 year ago)
- Last Synced: 2024-10-30T08:36:32.441Z (2 months ago)
- Language: Astro
- Homepage:
- Size: 167 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# astro-capo
> Warning
>
> POC, not production readyOptimize head using capo.js.
## Get started
```bash
pnpm add astro-capo
```Add a middleware and import `withCapo`:
```ts
// src/middleware.tsimport { sequence } from "astro/middleware";
import { withCapo } from "astro-capo";export const onRequest = sequence(withCapo);
```That's it
## Development
Having Corepack is recommended
```
pnpm i --frozen-lockfile
``````
pnpm --filter playground dev
```