Skip to main content
Use this guide for React, Vite and other static frontend applications.

Build pipeline

When you deploy, Servbase:
  1. installs dependencies with your package manager (npm, pnpm, yarn or bun);
  2. runs your build command (default <manager> run build);
  3. serves the output folder, which must contain index.html.
All three steps run in an isolated sandbox as your app’s own user. See Build settings & CI/CD for every option.

Output folder

Leave Output directory empty to auto-detect dist, build or out, or set it explicitly. The output folder is relative to the root directory.

Monorepos

Set Root directory to the folder that contains the app’s package.json.

Automatic deploys

Apps from GitHub redeploy automatically when the selected branch receives a push. Switch this off or change the branch in the app’s Settings tab.