Self-host

veryfront build and veryfront serve run your app on your own machine or server with Node.js 22.3 or later.

Before you start

You need a project on your machine. See Work locally.

Build and serve

  1. In your project's folder, build it. The output goes to dist, or the folder -o names:
    Shell
    npx veryfront build
  2. Start the production server. It listens on port 3000 and every interface by default:
    Shell
    npx veryfront serve --port 8787
  3. Request the home page. You should now see the answer 200:
    Shell
    curl -o /dev/null -w "%{http_code}\n" http://localhost:8787/

Try it in a sandbox

  1. The project on your machine

  2. Build it

  3. Start the production server

  4. Wait until it answers

  5. Check it

Try it out

Next steps