The Vercel Deploy skill lets Codex push any project to Vercel directly from your workspace. Say something like “deploy my app”, “push this live”, or “create a preview deployment” and Codex will pick up the intent, check for the Vercel CLI, and launch a deployment with a 10-minute timeout to handle even the largest builds. By default every deploy lands in a preview environment — production is only targeted when you explicitly ask for it.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/openai/skills/llms.txt
Use this file to discover all available pages before exploring further.
Trigger Phrases
Codex activates this skill when it detects deployment intent. Common phrases that trigger it:- “deploy my app”
- “deploy and give me the link”
- “push this live”
- “create a preview deployment”
- “ship it to Vercel”
Installing
Default Behavior
Every deployment is a preview unless you explicitly ask for production. This protects your live site while you iterate.
How It Works
Deploy via CLI (primary path)
If The
vercel is installed and authenticated, Codex deploys with a 10-minute timeout (600,000 ms) to handle long builds:-y flag skips interactive prompts so the deploy runs unattended.The Fallback Script
deploy.sh is a self-contained deployment helper that works without a Vercel account. Here’s what it does:
Framework Detection
Reads
package.json to identify the framework (Next.js, Remix, Astro, SvelteKit, Vite, and many others). The detected framework is passed to the deploy API for optimized builds.Project Packaging
Stages project files into a temp directory, excludes
node_modules, .git, and .env files, then creates a compressed tarball for upload.Static HTML Handling
For projects without
package.json, locates the single root HTML file and renames it to index.html if needed.Build Polling
After upload, polls the preview URL every 5 seconds (up to 5 minutes). Continues while the server returns 5xx (still building); stops as soon as any non-5xx response is received, confirming the build is ready.
Script Output
The script returns a JSON payload with two key fields:“Your deployment is ready at[previewUrl]. Claim it at[claimUrl]to manage your deployment.”
Production Deploys
Only run when the user explicitly requests it:Escalated Network Access
If the deploy fails due to network errors (timeouts, DNS failures, connection resets), Codex will ask before retrying with elevated sandbox permissions:Only the deploy command requires escalated permissions. The
command -v vercel installation check always runs without escalation.Timeout Considerations
Vercel builds can take several minutes for large projects. Codex uses a 10-minute (600,000 ms) timeout for the deploy command. If the CLI times out, consider:- Breaking the project into smaller deployments
- Pre-building locally before deploying
- Using the
deploy.shfallback, which has its own 5-minute build-ready polling loop