Skip to content

Hosting and deploys

Works on your computer, fails when deployed

The build passes locally, then the host shows a red build error.

What you get
The production build reproduced on your machine, the real cause named with its file and line, and a fix you can check before pushing.
Paste it into
Your AI tool, in your project
The prompt
My project runs fine locally but the deploy fails on my host. Don't guess from the error alone.

1. Find how the host builds this project (build command, Node version, package manager) from the config files.
2. Run that exact production build here and show me the first real error, not the last line.
3. Check the usual causes: a file name whose capital letters don't match its import, a package that is only installed locally, a missing environment variable, a type or lint error the dev server ignores, a different Node version.
4. Fix the cause, then run the build again and show it passing.

Tell me anything I have to change in the host's dashboard, step by step.

Use it

Open your AI tool (Claude Code, Codex or Cursor) in your project folder and paste it in.

More in Hosting and deploys