Skip to content

feat(v12): cms/astro#126

Merged
bryantgillespie merged 15 commits into
v12-update-directus-foundationfrom
v12-update-cms-astro
Jul 11, 2026
Merged

feat(v12): cms/astro#126
bryantgillespie merged 15 commits into
v12-update-directus-foundationfrom
v12-update-cms-astro

Conversation

@LZylstra

@LZylstra LZylstra commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Scope

  • Bump @directus/sdk to v22 and related Directus packages for Astro — required for v12 API behavior (RequestError throws, versioning keys).
  • Regenerate directus-schema.ts for v12 collections/fields.
  • Treat version=published the same as legacy version=main; forward draft and other keys to readItem for live preview.
  • Skip circular redirects (url_from === url_to) when loading redirects.
  • Move form submission validation server-side via validateFormSubmission + dedicated API route.

Stacked on #121 (foundation). Part of v12-update integration branch.

Potential Risks / Drawbacks

  • Depends on feat(v12): Directus foundation #121 for v12 Directus + template permissions. Checkout this branch to test — it includes foundation commits.
  • directus-schema.ts is large but generated — spot-check, don't read line-by-line.

Tested Scenarios

  • pnpm build in cms/astro
  • Permalink and blog pages render
  • Draft preview via version param
  • Form submit via new API route

Review Notes

  • Diff is confined to cms/astro/.
  • Estimated review time: ~20m

@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cms-nextjs Ready Ready Preview, Comment Jul 11, 2026 5:25am
cms-nuxt Ready Ready Preview, Comment Jul 11, 2026 5:25am
cms-svelte Ready Ready Preview, Comment Jul 11, 2026 5:25am
pizza-frontend Ready Ready Preview, Comment Jul 11, 2026 5:25am
visual-editor-demo Ready Ready Preview, Comment Jul 11, 2026 5:25am

Request Review

Bump Directus SDK packages, regenerate schema types, handle published/draft
version keys, harden form submission, and skip circular redirects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants