Build Settings
Configure how WebStadia builds your site from source code.
Configuration options
| Setting | Description | Example |
|---|---|---|
| Build Command | The command to build your site | npm run build |
| Install Command | The command to install dependencies | npm install |
| Publish Directory | The directory containing your built site | dist, build, .next |
| Root Directory | The subdirectory for monorepos | apps/web, packages/site |
Setting build configuration
- Go to your site's Settings tab
- Under Configuration, update the fields
- Click Save
Changes take effect on the next deployment.
Root Directory (Monorepos)
If your repository is a monorepo with multiple projects, set the Root Directory to the subdirectory containing your site.
For example, if your repo structure looks like:
my-monorepo/
├── apps/
│ ├── web/ ← your site
│ │ ├── package.json
│ │ └── src/
│ └── api/
├── packages/
└── package.json
Set the root directory to apps/web. WebStadia will:
cdintoapps/web- Run the install command
- Run the build command
- Look for build output in
apps/web/{publishDir}
Environment Variables
You can set environment variables that are available during the build process. See Environment Variables.