Open the service · Deployment guide
Vercel builds a site from code and provides an address for checking changes. Start with a separate test deployment, check sign-in, forms and saved data, then release the checked version to the main address.
Tool features
Vercel suits sites and web apps that run in its supported environment. Connect code through Git or send it with the CLI. The deployment documentation describes Preview for testing at a separate address before Production, the main site's environment.
A successful build confirms assembly, while sign-in, enquiries and database writes need separate checks. Keep existing data connections such as Supabase; changing hosting does not require a second database.
For a first hosting choice, compare Vercel with Cloudflare Pages (documentation) for ready-made pages and Railway for a persistent server process. Check code requirements. Hobby is for personal non-commercial use; choose suitable business terms for a business project.
How to prepare an existing project
- Ask Codex to find the project and read its instructions.
- Identify the build command, application root, variables and working connections. Selecting the right folder matters especially in multi-app repositories.
- Save the working version and existing site address.
Open the service and sign in to the correct team. For Git, check repository owner, branch and Root Directory. Reuse existing Vercel links rather than create duplicates to solve settings problems.
Follow the official CLI guide. If missing, check and agree on installation. The documented command is:
npm i -g vercel
From the app folder, inspect the selected project before using the CLI:
vercel project inspect --non-interactive
It should show the correct team and project. If unlinked, find the existing project, agree on the choice and link it appropriately. The signed-in username alone does not establish the deployment target.
How to get a test address
Prepare a separate branch. With Git integration, pushing a branch other than the Production Branch creates Preview. Check project rules first: main-branch changes may immediately start a production build.
For a confirmed project, the CLI command creates a test deployment:
vercel deploy
Configure environment variables for Preview. These values reach the app at build or runtime. Test versions need suitable test connections. Use authorised secret storage without printing values or committing them. Rebuild after changing variables; existing deployments do not receive them automatically.
If Preview requires Vercel sign-in, complete the intended access check. Automated checks should use an authorised method for protected previews.
How to check results and fix errors
Open the supplied address on desktop and phone. Complete the flow: sign in, create a practice record, refresh and find the saved result. Sign out and use a second practice account to confirm denial of another user's access.
Submit a form successfully, repeat and trigger an expected error. Compare with the database or enquiry recipient. A success message without a saved result is unfinished. PostHog can later measure successful actions.
For build failures, read that deployment's log and check build command, dependencies and Root Directory. For broken actions on a loaded page, check server logs, Preview-specific variables and sign-in return addresses. Repeat the same flow on a new version after fixing it.
How to release and restore a working version
After testing, use the project's accepted release method: main Git branch or CLI. CLI production release is explicit:
vercel deploy --prod
Check team, project, source commit and environment first. Repeat sign-in and saving at the main address after release. Completion means the address serves the correct version, the action saves data and user permissions hold.
Instant Rollback restores code. Find a previous production deployment and check plan limitations beforehand. Code rollback does not restore an external database; verify compatibility with newer data. Delete test versions only after checking addresses and dependencies. Project deletion does not cancel third-party subscriptions.
Next: web app with accounts for sign-in and data checks, or fixing a project bug for failures.
Prompt for deploying a project
Paste into Codex or Work with project access:
Find my site or app project, read its instructions and current deployment settings. Reuse an existing Vercel connection. Check environment requirements and current terms; if choosing new hosting, compare Vercel with one suitable alternative.
Identify the correct Vercel team, project, app folder, branch, build command and variable names. Use authorised storage for secret values. Save the working version and prepare Preview with test connections. Perform available actions yourself; give me one specific step for required sign-in or installation approval.
At the test address, check desktop and phone, sign-in, a successful write, errors, repetition and denial of another user's access. Verify saved data after refreshing. Fix errors and repeat.
Prepare release under project rules and a rollback method accounting for the external database. If release is already authorised, perform it after checks and repeat the flow at the main address. Show the checked version, address and remaining limitations.