Kirby's sample site โ but rewritten in Nuxt
Explore the kit live ยป
This repository is a port of the Kirby Starter Kit to Nuxt. The content is fetched using the nuxt-kql
module from Kirby Headless Starter, a headless Kirby instance instance.
nuxt-kql
$site
corepack enable
pnpm install
# Base URL of the Kirby backend
KIRBY_BASE_URL=
# Token for bearer authentication
# See https://github.com/johannschopplich/kirby-headless-starter#private-vs-public-api
KIRBY_API_TOKEN=
pnpm run dev
Build the application for production with pnpm run build
.
Check out the deployment documentation.
Data is fetched within Suspense components to ensure pre-rendered state for the user and SEO. Thus, the initial server response time is increased by about 50โ100 ms for the initial KQL page query. This might be a road blocker for you. You can always pre-render routes.
MIT License ยฉ 2022-PRESENT Johann Schopplich