Open the failed deploy on the Deploys tab to read its log. The last lines say why it stopped.
Common failures
| Message | Fix |
|---|---|
| Next.js built a server app | Add output: "export" to next.config.js, then push again |
| Framework didn't make a static site | SvelteKit: use adapter-static. Remix or React Router: SPA mode (ssr: false). Nuxt: nuxi generate |
| There's no index.html in dist, build, out or public | Set the Build output folder in the GitHub panel |
| The repository has no folder called … | Check the App folder |
| This repository uses Bun | Commit a package-lock.json or pnpm-lock.yaml |
| "…" failed (exit code 1) | Your install or build command failed: the lines above it show the error from your tools |
| The build took longer than 15 minutes | Speed up the build, or check it isn't waiting for input |
It works on my computer
- Lockfile out of date.
npm ciand--frozen-lockfilerefuse to change the lockfile. Run the install locally and commit the updated lockfile. - Missing settings. Variables in your local
.envaren't in the repository. Add them under Settings and secrets. - Case of file names. Builds run on Linux, where
Logo.pngandlogo.pngare different files. - Node version. Builds use Node.js 22.
A deploy is stuck
A deploy shows Queued while another build runs. Choose Cancel deploy on one you don't need. If a build was interrupted by maintenance, it's marked failed; choose Deploy now to run it again.