Skip to content

feat(v12): cms-i18n/nuxt #127

Merged
bryantgillespie merged 13 commits into
v12-update-directus-foundationfrom
v12-update-cms-i18n-nuxt
Jul 11, 2026
Merged

feat(v12): cms-i18n/nuxt #127
bryantgillespie merged 13 commits into
v12-update-directus-foundationfrom
v12-update-cms-i18n-nuxt

Conversation

@LZylstra

Copy link
Copy Markdown
Collaborator

Scope

  • Bump @directus/sdk to v22 and related Directus packages for cms-i18n Nuxt — required for v12 API behavior.
  • Enable DIRECTUS_SERVER_TOKEN on server Directus client so licensed translation deep queries work (matches Next.js starter).
  • Fix i18n page field builder (seo is JSON, not a translations subfield) and align pages/one deep query with Next.js.
  • Treat version=published the same as legacy version=main; forward draft for live preview.
  • Skip circular redirects and harden form submission server-side.

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.
  • Requires DIRECTUS_SERVER_TOKEN in cms-i18n/nuxt/.env (documented in README).

Tested Scenarios

  • pnpm build in cms-i18n/nuxt
  • /es/ returns 200
  • GET /api/pages/one?permalink=/&locale=es-ES returns Spanish homepage
  • Language switcher works
  • Form submit via server API route

Review Notes

@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 10:33am
cms-nuxt Ready Ready Preview, Comment Jul 11, 2026 10:33am
cms-svelte Ready Ready Preview, Comment Jul 11, 2026 10:33am
pizza-frontend Ready Ready Preview, Comment Jul 11, 2026 10:33am
visual-editor-demo Ready Ready Preview, Comment Jul 11, 2026 10:33am

Request Review

LZylstra added 2 commits June 12, 2026 14:54
Bump Directus SDK packages, enable server token for translation queries,
handle published/draft version keys, harden form submission, and skip circular redirects.
@bryantgillespie
bryantgillespie merged commit 32fc4c8 into v12-update-directus-foundation Jul 11, 2026
6 checks passed
@bryantgillespie
bryantgillespie deleted the v12-update-cms-i18n-nuxt branch July 11, 2026 10:52
bryantgillespie added a commit that referenced this pull request Jul 20, 2026
* feat(v12): Directus foundation — docker, templates, RBAC

Upgrade all starter Directus runtimes and templates to v12 with tier-aware
permissions, RBAC codegen/sync tooling, and licensed template variant.

* Code cleanup

* Fix format

* Remove admin env setup

* Fix PR feedback

* Remove planning doc

* feat(v12): cms/nuxt  (#123)

* feat(v12): cms/nuxt — SDK 22 and versioning

Bump Directus SDK packages, handle published/draft version keys, harden form
submission, and skip circular redirects.

* cleanup: cms/nuxt — v12 version handling, FormBuilder submit state

* Cleanup

* Fix className issue

* Update version handling and tokens

* Form validation updates

* Fix VE in live preview

* Fix VE draft pages

* fix cms form validation and legacy preview

---------

Co-authored-by: bryantgillespie <hey@bryantgillespie.com>

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

* feat(v12): cms-i18n/nextjs — SDK 22 and i18n fetch fixes

Bump Directus SDK packages, handle published/draft version keys, fix i18n
globals fetch permissions, harden form submission, and skip circular redirects.

* cleanup

* Cleanup

* Node update

* Update version handling and tokens

* Form validation updates

* Fix VE in live preview

* Fix VE draft pages

* Fix cms i18n visual editing review issues

---------

Co-authored-by: bryantgillespie <hey@bryantgillespie.com>

* feat(v12): cms/sveltekit  (#124)

* feat(v12): cms/sveltekit — SDK 22 and versioning

Bump Directus SDK packages, update schema types, handle published/draft
version keys, harden form submission, and skip circular redirects.

* cleanup: cms/sveltekit — v12 version handling and stale TODO

* Cleanup

* Checkbox fix

* Update version handling and tokens

* Form validation updates

* Fix VE in live preview

* Fix VE drafts

* Guard inactive form submissions

---------

Co-authored-by: bryantgillespie <hey@bryantgillespie.com>

* fix: migrate pnpm settings for pnpm 11

* fix: limit pnpm migration to changed frontends

* feat(v12): cms/astro (#126)

* feat(v12): cms/astro — SDK 22 and versioning

Bump Directus SDK packages, regenerate schema types, handle published/draft
version keys, harden form submission, and skip circular redirects.

* Cleanup

* Remove extra comment

* Cleanup

* Fix indentation and type

* Update version handling and tokens

* Form validation updates

* Fix for draft posts

* Fix VE with live preview

* Fix VE draft pages

* fix(astro): harden preview and form submissions

---------

Co-authored-by: bryantgillespie <hey@bryantgillespie.com>

* feat(v12): cms-i18n/nuxt  (#127)

* feat(v12): cms-i18n/nuxt — SDK 22 and i18n server token

Bump Directus SDK packages, enable server token for translation queries,
handle published/draft version keys, harden form submission, and skip circular redirects.

* Error handling

* Align with other template

* Cleanup

* Updated version and token handling

* Fix VE in live preview

* Fix VE draft pages

* fix: harden Nuxt visual editing and APIs

---------

Co-authored-by: bryantgillespie <hey@bryantgillespie.com>

* fix: unblock astro ci build

* feat(v12): cms/nextjs  (#122)

* feat(v12): cms/nextjs — SDK 22 and versioning

Bump Directus SDK packages, handle published/draft version keys, harden form
submission, and skip circular redirects.

* Cleanup

* Updates to version and token handling

* Form validation updates

* Fix VE in live preview

* Fix VE draft pages

* Fix formatting

* Fix Next.js preview editing and form submit

* fix(nextjs): harden forms and visual editing

---------

Co-authored-by: bryantgillespie <hey@bryantgillespie.com>
Co-authored-by: Bryant Gillespie <bryant@directus.io>

* fix: unblock nextjs ci build

* fix: support vercel nextjs pnpm install

---------

Co-authored-by: bryantgillespie <hey@bryantgillespie.com>
Co-authored-by: Bryant Gillespie <bryant@directus.io>
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