Skip to main content

Deployment

Deployment turns source code into an app served at a public URL. Trace build failures, missing configuration and differences between preview and live.

Where should I start with deployment?

Start with the guide that matches your question or the error you can see. Each guide below names the problem, gives checks you can run, and links to related reading.

What if preview works but the public URL fails?

Treat preview and live as separate environments until you verify otherwise. In an illustrative failure, preview has a server configuration value but the deployed environment does not. Rewriting the form will not supply that value. Check the failed request, deployed revision and target environment before changing application logic.

  1. 1Confirm the deployment completed and serves the intended commit.
  2. 2Compare the required variable names with the target environment without displaying their values.
  3. 3Determine whether the host requires a rebuild or redeploy after configuration changes.
  4. 4Repeat the failing flow at the public URL, including refresh and a safe denial case.

Which values can reach the browser?

Public-variable prefixes expose values to browser code; they do not make secrets safe. Keep provider-designated secret credentials in server-side handlers. Use the environment-variable guide for visibility and scope, and the deployment walkthrough for the build-to-public-URL sequence. Do not print secrets into a build log while investigating.

Read the deployment guides

8 min readUpdated September 22, 2026

Environment variables explained for beginners

What an environment variable is, why the same code behaves differently in two places, which ones reach the browser, and how to check whether yours is actually set.

8 min readUpdated September 22, 2026

What happens when you deploy an app to Vercel?

From commit to live URL: install, build, output, edge and server functions, environment variables and why the production build is stricter than your laptop.

Looking for something else? Browse every topic.