Skip to content

fix(vovk-cli): add route file RPC modules to the client before the first schema request - #134

Merged
finom merged 1 commit into
mainfrom
fix/dev-placeholder-rpc-names
Oct 21, 2026
Merged

finom merged 1 commit into
mainfrom
fix/dev-placeholder-rpc-names

Conversation

@finom

@finom finom commented Oct 21, 2026

Copy link
Copy Markdown
Owner

A page that imports an RPC module the client lacks fails to compile, and next dev then answers 500 to every route, the schema routes included, so vovk dev never gets the schema.

vovk dev now reads each segment's route file with ts-morph (the object passed to initSegment as controllers, under any variable name, or inline), adds the missing names to the client as modules without methods, and generates it before the first schema request. The real schema replaces them.

vovk new adds the controller to that same object, so a variable named other than controllers works too.

Also the vovk-cli 0.3.6 CHANGELOG section (with #129).

…rst schema request

A page that imports a module with no schema yet fails to compile, and next dev then answers 500 to the schema routes too.
@vercel

vercel Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
realtime-kanban Ready Ready Preview Oct 21, 2026 8:46pm UTC
vovk-agent-ready Ready Ready Preview Oct 21, 2026 8:46pm UTC
vovk-examples Ready Ready Preview Oct 21, 2026 8:46pm UTC
vovk-hello-world Ready Ready Preview Oct 21, 2026 8:46pm UTC
vovk-multitenant-example Ready Ready Preview Oct 21, 2026 8:46pm UTC

Request Review

This branch was successfully deployed

4 active deployments
Preview – vovk-examples — 17d8a828 Deployed Oct 21, 2026 by vercel[bot]
Preview – realtime-kanban — 17d8a828 Deployed Oct 21, 2026 by vercel[bot]
Preview – vovk-hello-world — 17d8a828 Deployed Oct 21, 2026 by vercel[bot]
Preview – vovk-multitenant-example — 17d8a828 Deployed Oct 21, 2026 by vercel[bot]
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