# A deployment failed (/help/troubleshooting/deployment-failed)

**The deployment failed** means your app couldn't be built for the web. What's live doesn't change: production keeps serving the last deployment you published.

## Fix it [#fix-it]

Open **Deployments** and open the failed deployment.

In its build log, turn on **Errors and warnings only**, then select **Copy the log**.

In **Vibe code**, paste the log into the chat with `/fix`: _"/fix The deployment fails with this log: …"_

When the agents are done, select **Deploy** again.


## Common causes [#common-causes]

- **The preview works but the deployment doesn't.** The preview is more forgiving than a production build: type errors and missing files can pass in the preview and fail the build. The log names the file and line.
- **A missing setting.** If your app reads a key or an address (an API key, a database address), the build needs it too. Paddle Cloud keys are set up for you; for others, see [Secrets](/build/paddle-cloud).
- **It worked yesterday.** Compare the last good version with the current one in [Versions](/build/code-and-versions), or roll back the code and deploy again.
