Skip to content

Generate authentication files before dev server hooks. - #828

Merged
cpojer merged 1 commit into
mainfrom
codex/auth-schema-fresh-clone
Nov 14, 2026
Merged

cpojer merged 1 commit into
mainfrom
codex/auth-schema-fresh-clone

Conversation

@cpojer

@cpojer cpojer commented Nov 14, 2026

Copy link
Copy Markdown
Member

Generate the customized authentication schema and database module during the routing plugin’s configureServer hook, so later startup hooks can import app code that references authentication tables. Document lazy imports for schema-dependent auth hooks so void prepare can generate those tables on a fresh clone.

The fresh Cloudflare smoke test also passes on current main with a correctly configured alias. The failing regression directly exercises availability of the generated files before later startup hooks.

Adds fresh-app coverage for void prepare and Cloudflare dev startup, including a foreign key to userTable and a custom authentication field.

Validation:

  • The ordering regression fails before the fix.
  • Focused routing and fresh-app tests pass independently.
  • Combined fix-batch verification: 13,338 affected tests, 17,009 full-suite tests with vp test run --pool forks, vp run build:all, vp run check, formatting, linting, and build-artifact checks.

The default full-suite run hit a native Node 24/V8 WebAssembly JIT assertion (end > addr); forked-worker verification completed successfully.

Refs #823.

@cpojer
cpojer merged commit 4fde783 into main Nov 14, 2026
20 checks passed
@cpojer
cpojer deleted the codex/auth-schema-fresh-clone branch November 14, 2026 02:41
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.

1 participant