Support Astro 7#1552
Conversation
🦋 Changeset detectedLatest commit: 9d74c5c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
|
I tested this branch locally and found no issues. I also asked Opus for an adversarial review and it came back with: Environment: checked out this PR head, pnpm install, macOS. All the gates that are waiting pass locally: ✅ TypeScript (check:types) — clean Runtime: ran the repo's own dev-projects/astro-content (local storage) on astro 7.0.4 — admin serves and renders, collections load, content read/write to disk works. Scope note: I verified the read/local path at runtime; the GitHub write/auth path I checked by inspection only — packages/astro/src/api.tsx uses stable Astro surface (context.request, context.locals, all/ALL, prerender = false), none changed in v7. This LGTM and seems ready to merge. |
Summary
Adds support for Astro 7. The
@keystatic/astrointegration code is unchanged — only itspeerDependenciesrange is widened — and the example/template projects are upgraded to Astro 7 with Vite 8-compatible integrations.Changes
@keystatic/astropeerDependenciesto2 || 3 || 4 || 5 || 6 || 7(+ bump its devastroto^7.0.4)astroto^7.0.4indev-projects/astro,dev-projects/astro-content,templates/astro@astrojs/react@^6,@astrojs/node@^11,@astrojs/markdoc@^2,@astrojs/sitemap@^3.7.3,@tailwindcss/vite/tailwindcss@^4.3.2@keystatic/astrominor)Check plan
pnpm check:typespassespnpm check:lintandpnpm check:formatpasspnpm build:packagesproducespackages/astro/dist/*pnpm --filter @example/astro buildsucceeds (server + Node adapter)pnpm --filter @example/astro-content buildsucceeds (Tailwind 4 CSS-first, Content Layer)pnpm --filter @keystatic/templates-astro buildsucceeds with prerendered public pagespnpm --filter @example/astro dev—GET /keystatic/200 (admin UI bundle),/keystatic/collection/posts200,GET /api/keystatic/github/login307