Skip to content

feat(v12): cms/nextjs #122

Merged
bryantgillespie merged 14 commits into
v12-update-directus-foundationfrom
v12-update-cms-nextjs
Jul 12, 2026
Merged

feat(v12): cms/nextjs #122
bryantgillespie merged 14 commits into
v12-update-directus-foundationfrom
v12-update-cms-nextjs

Conversation

@LZylstra

@LZylstra LZylstra commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Scope

  • Bump @directus/sdk to v22 and related Directus packages for Next.js — required for v12 API behavior (RequestError throws, versioning keys).
  • 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.
  • Lockfile churn is dependency-only.

Tested Scenarios

  • pnpm build in cms/nextjs
  • / and blog routes render
  • ?preview=true&version=draft live preview
  • Form submit via new API route
  • No redirect loop with licensed RBAC sync

Review Notes

  • Diff is confined to cms/nextjs/ — compare patterns with other framework PRs if unsure.
  • Estimated review time: ~15m

@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 12, 2026 4:00pm
cms-nuxt Ready Ready Preview, Comment Jul 12, 2026 4:00pm
cms-svelte Ready Ready Preview, Comment Jul 12, 2026 4:00pm
pizza-frontend Ready Ready Preview, Comment Jul 12, 2026 4:00pm
visual-editor-demo Ready Ready Preview, Comment Jul 12, 2026 4:00pm

Request Review

@LZylstra LZylstra mentioned this pull request Jun 12, 2026
@LZylstra
LZylstra force-pushed the v12-update-directus-foundation branch from 57a732a to 9390908 Compare June 12, 2026 20:30
@LZylstra
LZylstra force-pushed the v12-update-cms-nextjs branch from 508a720 to da7bd5b Compare June 12, 2026 20:30
@LZylstra
LZylstra force-pushed the v12-update-directus-foundation branch from 9390908 to fa004d4 Compare June 12, 2026 20:36
@LZylstra
LZylstra force-pushed the v12-update-cms-nextjs branch from da7bd5b to 5212e46 Compare June 12, 2026 20:36
@LZylstra LZylstra changed the title feat(v12): cms/nextjs — SDK 22 and versioning feat(v12): cms/nextjs Jun 12, 2026
Bump Directus SDK packages, 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.

2 participants