/astro-capo

Capo.js integration for Astro

Primary LanguageAstro

astro-capo

Warning

POC, not production ready

Optimize head using capo.js.

Get started

pnpm add astro-capo

Add a middleware and import withCapo:

// src/middleware.ts

import { 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