Sites works these out from your repository when you create the site, and again on every build. The App settings step shows what it found; anything you enter there overrides it.
Frameworks
| Framework | Detected by the package | Output folder |
|---|---|---|
| Next.js | next |
out (needs output: "export") |
| Nuxt | nuxt |
.output/public (built with nuxi generate) |
| Astro | astro |
dist |
| SvelteKit | @sveltejs/kit |
build (needs adapter-static) |
| React Router | @react-router/dev |
build/client (SPA mode) |
| Remix | @remix-run/dev |
build/client (SPA mode) |
| Gatsby | gatsby |
public |
| Docusaurus | @docusaurus/core |
build |
| VitePress | vitepress |
Found after the build |
| Eleventy | @11ty/eleventy |
_site |
| Angular | @angular/core |
Found after the build (dist/<app>/browser) |
| Create React App | react-scripts |
build |
| Vite | vite |
dist |
| Parcel | parcel |
dist |
| Plain HTML | No package.json |
The repository as it is |
When the output folder isn't known, the build uses the first of dist, build, out, public, _site or .output/public that holds an index.html.
Package managers
The nearest lockfile, from the app folder up to the top of the repository, decides:
| Lockfile | Install command |
|---|---|
pnpm-lock.yaml |
pnpm install --frozen-lockfile |
yarn.lock with .yarnrc.yml |
yarn install --immutable |
yarn.lock |
yarn install --frozen-lockfile |
package-lock.json |
npm ci |
| None | npm install |
The build command is your build script (npm run build, pnpm run build or yarn run build). With no build script, the files are deployed as they are.
Important
Bun isn't supported yet. Commit a package-lock.json or pnpm-lock.yaml instead of bun.lockb.
Overriding a setting
On the site's Deploys tab, choose Edit in the GitHub panel:
- App folder: for monorepos, the folder holding the site's
package.jsonorindex.html. - Install command, Build command: any shell command.
- Build output folder: relative to the app folder, holding
index.htmlafter the build.
Leave a field empty to go back to detection. The next deploy uses the new settings; choose Deploy now to build straight away.
Settings and secrets
Each setting is an environment variable given to the build and to the site's functions. Mark values like API keys as secrets: their values are never shown again, in the Console or the API.
Frameworks only put variables into the browser's code when they have the framework's prefix, for example VITE_ for Vite or NEXT_PUBLIC_ for Next.js. Never give a secret such a prefix.
The build environment
| System | Debian with Node.js 22, npm, pnpm and yarn (through Corepack), git, Python 3, make and g++ |
| Memory and CPU | 3 GB, 2 CPUs |
| Time limit | 15 minutes |
| Network | The internet (for packages), not Xenkloud's servers or private addresses |
| Build minutes | Counted per team; see Quotas |
Functions in a built site
If the app folder has an api/ folder, it's added to the deploy as the site's functions, unless the build output already holds one.