Prerequisites
- A project that passes the Local quickstart.
- Inference available from a provider API, an OpenAI-compatible service, or a built-in local model. See Providers.
- A host that supports the current Node.js LTS, Deno, Bun, or containers.
Build the project
dist/. API routes, agents, workflows, and
tasks remain in the project source.
Test the production server
Create a container
You must ship the whole project directory, not justdist/. Add a
.dockerignore so local dependencies, credentials, and build state stay out of
the image:
.dockerignore
Dockerfile:
npm ci installs the project-local Veryfront CLI from the lockfile before the
image builds the app. Copying the package files first also lets Docker reuse the
dependency layer when only application code changes.
Build and run it:
.dockerignore keeps .env files out of the image.
Verify it worked
Open http://localhost:3000 and send a message to the agent. Confirm the page, API route, and inference provider behave as they did underveryfront serve.
Deploy the same container to any environment that can run it. The runtime does
not require Veryfront Cloud.
For production server options, see the
Server reference.