Skip to content

feat(v12): cms-i18n/nextjs #125

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

feat(v12): cms-i18n/nextjs #125
bryantgillespie merged 12 commits into
v12-update-directus-foundationfrom
v12-update-cms-i18n-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 cms-i18n Next.js — required for v12 API behavior.
  • Treat version=published the same as legacy version=main; forward draft for live preview on localized pages.
  • Skip circular redirects (url_from === url_to) when loading redirects.
  • Move form submission validation server-side via validateFormSubmission + dedicated API route.
  • Remove stale bun.lock (project uses pnpm).

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

Potential Risks / Drawbacks

  • Depends on feat(v12): Directus foundation #121 for v12 Directus, i18n template permissions, and globals.translations public read.
  • Checkout this branch to test — it includes foundation commits.

Tested Scenarios

  • pnpm build in cms-i18n/nextjs
  • / and /es/ render
  • Language switcher loads globals without 403
  • Draft preview on localized pages
  • Form submit via API route

Review Notes

  • Diff is confined to cms-i18n/nextjs/.
  • 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 10, 2026 5:03pm
cms-nuxt Ready Ready Preview, Comment Jul 10, 2026 5:03pm
cms-svelte Ready Ready Preview, Comment Jul 10, 2026 5:03pm
pizza-frontend Ready Ready Preview, Comment Jul 10, 2026 5:03pm
visual-editor-demo Ready Ready Preview, Comment Jul 10, 2026 5:03pm

Request Review

@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-i18n-nextjs branch from 758a3b6 to 7716c01 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-i18n-nextjs branch from 7716c01 to fb507ab Compare June 12, 2026 20:36
@LZylstra LZylstra changed the title feat(v12): cms-i18n/nextjs — SDK 22 and i18n fetch fixes feat(v12): cms-i18n/nextjs Jun 12, 2026
LZylstra added 2 commits June 12, 2026 15:39
Bump Directus SDK packages, handle published/draft version keys, fix i18n
globals fetch permissions, 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