Skip to main content

Prerequisites

  • A project that runs locally with veryfront dev (see Create project).
  • For Veryfront Cloud: a VERYFRONT_API_TOKEN and a project reference. Run veryfront login or set the env vars. See Configuration.
  • For another host: any container or Node-compatible runtime that can serve the build output.

Build

Create a production build:
This writes the production output to dist/.

Run the production build locally

Stop the dev server, then serve the production build:
Open http://localhost:3000. Confirm the same pages and endpoints work.

Deploy to Veryfront Cloud

Push the current checkout to Veryfront main, then create and deploy its release:
Run both commands from the same checkout. Deploy verifies the Push receipt, Git commit, and source digest before it creates the release.

Deploy somewhere else

For a non-Cloud target, run veryfront build and ship the dist/ output. See Building and deploying.

Verify it worked

After Deploy completes, run:
The deployed page and API routes respond. For an automated production workflow, see Deploy from CI.