ViteHub is still experimental. Expect bugs and breaking changes.

Generated files

Inspect ViteHub generated files without making them public authoring surfaces.

Generated files prove how ViteHub resolved Definitions, Runtime Registries, stable imports, and Provider Output. Application code uses documented ViteHub imports instead of generated files.

Common generated paths

PathOwnerPurpose
.vitehub/env/public.mjsEnv PackageGenerated Public Env runtime module.
.vitehub/env/server.mjsEnv PackageGenerated Server Env runtime module.
.vitehub/types/env.d.tsEnv PackageGenerated Public Env and Server Env types.
.vitehub/types/browser.d.tsBrowser PackageGenerated Browser Definition names and input/result module types.
.vitehub/types/email.d.tsEmail PackageExact module declarations for discovered #vitehub/emails/<name> imports.
.vitehub/types/markdown-template.d.tsMarkdown Template PackageGenerated module type for direct *.template.md imports.
.vitehub/types/workspace.d.tsWorkspace PackageGenerated Workspace name types.
.vitehub/email/templates/*.mjsEmail PackageBundled Markdown email templates used by provider builds.
.vitehub/rate-limit/manifest.jsonRate Limit PackageSorted Rate Limit IDs, resolved providers, and inspectable driver capabilities.
.vitehub/nitro/realtime/registry.mjsRealtime PackageGenerated registry for discovered Realtime Definitions.
.vitehub/nitro/realtime/handler.tsRealtime PackageGenerated WebSocket and checkpoint route handler.
.vitehub/agent/chat-webhook-route.tsAgent PackageGenerated Chat Webhook Route handler for discovered chat-capable Agents.
.vitehub/agent/discord-gateway-plugin.tsAgent PackageGenerated Nitro process lifecycle for Discord Gateway listeners on the Node preset.
.vitehub/agent/discord-gateway-route.tsAgent PackageGenerated Nitro route handler that wakes the Discord Gateway listener for discovered Discord Agents.
.vitehub/agent/deno-server.tsAgent PackageGenerated Deno server output for Agent chat and webhook routes.
.vitehub/schedule/deno-cron.mjsSchedule PackageDeno Deno.cron wake output for Static Schedule Definitions.
.vitehub/nitro/schedule/*Schedule PackageNarrow Nitro bridge for Schedule Provider Wake.
.vitehub/provision.jsonViteHub CLINon-secret Provision State read by Vite Integrations.
.vercel/output/**Provider OutputVercel Build Output generated during provider builds.
.netlify/v1/functions/**Provider OutputNetlify Agent and static Schedule functions generated by their package integrations.
dist/<app>/wrangler.jsonProvider OutputCloudflare worker config generated during provider builds.

The .vitehub/agent/** paths above are the default for Vite integrations. The Nuxt integration keeps generated Agent artifacts inside Nuxt's build directory instead, under <buildDir>/vitehub/agent/** (normally .nuxt/vitehub/agent/**). Agent Definition discovery still uses the project and server directories.

Inspect generation

List generated files after Vite startup or build. The exact set depends on the package integrations and Provider Selection.

Terminal
find .vitehub -maxdepth 4 -type f | sort

For Nuxt, inspect the framework-owned generated directory instead.

Terminal
find .nuxt/vitehub -maxdepth 4 -type f | sort

Inspect resolved Rate Limit guarantees before deployment. The manifest uses schemaVersion: 2 and contains sorted rateLimits entries with name, provider, and capabilities; it is generated state for agents and tooling, not an application import.

Terminal
cat .vitehub/rate-limit/manifest.json

Inspect env aliases through the stable import paths. The generated files are implementation details behind those imports.

server/config.ts
import { useServerEnv } from '#vitehub/env/server'

const env = useServerEnv()

Regenerate after edits

Vite Integrations refresh generated files during dev startup, hot updates, or build hooks depending on the package. Restart the Vite dev server when a generated file does not match the current Definition set.

Terminal
pnpm dev

Troubleshooting

SymptomLikely causeFix
Stable import does not resolveGenerated type path is missing from TypeScript includes, or the Vite Integration did not run.Add .vitehub/types/**/*.d.ts to tsconfig.json and restart Vite.
Generated registry is emptyDiscovery path does not match the package file convention.Check File conventions.
Provider output is staleBuild skipped provider output during dev or e2e mode.Run a production-shaped build.
Provision ids are missingProvision State was never written, or env vars override it.Run vitehub provision run --dry-run, then apply with credentials if needed.

Next steps