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:
veryfront build
This writes the production output to dist/.

Run the production build locally

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

Deploy to Veryfront Cloud

veryfront deploy
For a preview deployment per branch:
veryfront deploy --branch feature-x

Deploy somewhere else

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

Verify it worked

After veryfront deploy, run:
veryfront open
The deployed page and API routes respond.