1 Commits
Author SHA1 Message Date
Davide Silvestri ba30b8ba5d fix: render the onboarding page server-side without crashing (#6087)
* fix: render the onboarding page server-side without crashing

Vuelidate registers rules declared through the Options API `validations()`
option inside `onBeforeMount`, which server-side rendering never runs. `v$`
was therefore empty while DatabaseStep's template rendered `v$.name.$error`,
so a cold SSR of /onboarding returned a 500. SSO logins hit this on every
new user: the provider redirects to /dashboard, which server-redirects to
/onboarding before any client JS runs.

Register the rules through the composition form instead, so they exist
during SSR, and move the misplaced optional chain in the form mixin so
`v$.values` being absent no longer throws.

Closes #6043

* chore: address review feedback

Reword the changelog entry in user-facing terms and drop the `$registry`
override from the SSR test, which never reached the component because it
resolves the registry through `useNuxtApp()`.
2026-09-16 16:49:08 +02:00