Skip to content

New Astro Site

Requires a deployed CMS (setup).

Terminal window
npm create @kenresoft-cms@latest my-site -- --astro
cd my-site
cp .env.example .env
pnpm install
pnpm dev

Set the CMS API URL in .env:

PUBLIC_KENRESOFT_CMS_URL=https://your-cms-api.example.com

The starter is a standalone project. It is not part of the CMS repository and does not receive changes from pnpm run update. It includes the /cms same-origin proxy, browser and server clients, and account pages (register, sign-in, email verification, password reset, two-factor).

Allow the site’s origin in the CMS API’s CORS_ORIGINS: see Authentication and CORS.