Skip to Content
FrameworksAstro

Astro

Astro support is coming soon.

In the meantime, you can use the framework-agnostic createVard client from @vard-app/sdk in Astro’s server-side frontmatter:

src/lib/vard.ts
import { createVard } from "@vard-app/sdk"; export const vard = createVard({ apiKey: import.meta.env.VARD_API_KEY, });
src/pages/index.astro
--- import { vard } from "../lib/vard"; import { v } from "@vard-app/sdk"; const content = await vard.get(); --- <h1>{content.hero.title}</h1>

A dedicated Astro integration with content collection support is on the roadmap. Follow the changelog for updates.

Last updated on
Vard SDK Documentation