Category: Vercel and hosting

Vercel: production works, preview has no API configuration

Read this guide in Polish

The PR preview returns the integration error and the production domain works properly.

How to identify the source of the problem

Check the Production, Preview and Development ranges of each environmental variable.

Compare SHA commit, the status of deployment and HTTP response under the final domain, not the very status of READY.

Repair steps

Assign variables to the right environment and use separate test data in the preview.

How to Test Solution

Preview works on test integration without access to secret production data.

Security and restrictions

Keep the previous active deployment until the new one is confirmed under your own domain. Avoid writing secrets in logs.