No code changes
Next.js (App Router) + shadcn/ui: the platform detects it and picks the build and start commands.
Deploy a v0 app · Agent Lab Deploy
Download the code as a zip in v0, or connect it to GitHub. Link the repository in Agent Lab or upload the zip — no code changes, no Dockerfile. Agent Lab detects the framework, builds it, gives every version a preview URL and checks uploads for leaked keys.
> deploy this v0 project
sites_createmy-v0-app
sites_deployframework detected
sites_deploy_statusbuilt · secret scan passed
Live at my-v0-app--acme.hosting.agentlab.run
Why deploy from v0 to Agent Lab
Next.js (App Router) + shadcn/ui: the platform detects it and picks the build and start commands.
Every upload is a new version with its own URL. Look first, then go live; switch back in one click.
Uploads are checked for API keys and credentials before they can go live.
Create a database and connect it; the connection is written into the app.
Your options
Scroll the table sideways.
| What you care about | Agent Lab Deploy | Your own server |
|---|---|---|
| Setup | Link the repository or upload the zip | SSH, a runtime, a process manager, a reverse proxy |
| Credentials | Secrets in the console, never in the code | Copied onto the server by hand |
| Preview and rollback | Every version has its own URL; roll back in one click | Write your own scripts |
| Before going live | Uploads checked for leaked keys | Nothing unless you set it up |
| Database | PostgreSQL in one click, connection written into the app | Install and back it up yourself |
| Cost to start | Free plan: US$0, one size-S app (sleeps when idle) | A VPS at roughly US$6–20 a month, plus your time |
Steps
Download the code as a zip in v0, or connect it to GitHub.
Link the GitHub repository to a project, drop the zip on its Deploy tab, or open the folder in Claude Code and say "deploy this".
The platform builds the version and checks it for leaked keys. Enter any secrets it lists in Settings.
The first version goes live once it builds. Later ones get a preview URL; go live when you're happy.
Setup
A v0 Next.js project deploys as a web service; next start already handles image optimization and Middleware. With output: "export" the project becomes a static web page on the CDN.
# Agent Lab 偵測到 Next.js 後執行
# What Agent Lab runs once it detects Next.js
npm ci
npm run build # next build
npm start # next start,監聽 $PORT / listens on $PORTNEXT_PUBLIC_* baked into the page at build time and visible to anyone; never put a secret here.*_API_KEY server-side keys go in the project's Secrets, never in the code.Read https://app.agentlab.cresclab.com/agent/deploy.md and deploy this project to Agent Lab. Show me the build plan and the environment variables it needs first, tell me where to enter any secrets, and wait for my OK before it goes live.FAQ