Skip to content

Deploying and Updating Astro

When your Astro site is deployed on Cloudflare in the same account as the CMS API, you may need the Wrangler compatibility flag global_fetch_strictly_public. The installer detects this but does not edit your Wrangler config.

The site and the CMS deploy independently and can live in separate repositories.

From the Astro project root:

Terminal window
npx @kenresoft-cms/create astro --update

This updates the managed files, the @kenresoft-cms/astro package and the integration metadata. It does not touch your pages, layouts, components, styles or CMS.

@kenresoft-cms/astro is a 0.x package, and ^0.3.0 does not cross into 0.4.0, so the updater checks the npm registry for the newest release compatible with your Astro version. To update the package by hand: pnpm add @kenresoft-cms/astro@latest.

If you edited a managed file, the updater reports it and does not overwrite it:

Conflicts:
- src/lib/kenresoft.ts

The command exits with code 2. Merge the changes yourself, or replace the file deliberately after reviewing:

Terminal window
npx @kenresoft-cms/create astro --update --force