Skip to main content
Use this guide to build a production bundle, run it locally, and deploy it. Keep the first production path narrow: one route, one check, one deploy.

Prerequisites

  • A Veryfront project that runs with veryfront dev.
  • Production credentials for providers, integrations, and deployment targets.
  • For Veryfront Cloud: VERYFRONT_API_TOKEN and a project reference.
  • For self-hosting: the current Node.js LTS or a container host that can serve the build output.

Pick one production path

Choose one route or API boundary to verify across every stage. Add only the primitive that route needs now. Use Choose a primitive when more than one option looks valid.

Build

Create a production build:
This compiles pages, bundles assets, pre-renders static routes, and writes the output to dist/ by default. Customize the output directory in veryfront.config.ts:

Run the build locally

Open the same route you tested in development. For API routes, compare the dev and production responses with curl.

Deploy to Veryfront Cloud

Push the current checkout to Veryfront, then create and deploy an immutable release from that source:
Run both commands from the same checkout. Deploy verifies the Push receipt, Git commit, and source digest before creating the release. For an existing nonproduction environment named staging:
Use veryfront open after deployment to open the project. Use veryfront open --json when automation needs the deployed URL.

Set production environment variables

Set provider and integration credentials on the deployment platform:
For Veryfront Cloud, set the same variables in the target environment before deploying.

Deploy somewhere else

Self-hosted deployments can use the build output or a container:
Use infrastructure that supports your chosen runtime and can serve the build output.

Verify it worked

After veryfront build:
  • dist/ or your configured outDir contains compiled assets.
  • veryfront serve serves the build locally.
  • The route you chose responds the same way it did in development.
After veryfront deploy:
  • The CLI confirms the deployed release and environment.
  • veryfront open opens the deployed project.
  • The same page, API route, agent, workflow, task, or run path works in production.
  • The Cloud dashboard lists the deployment under the project.

Next