---
title: Deploy a v0 App with AI on Blossom
url: "/deploy/v0/"
canonical_url: https://blossom88.com/deploy/v0/
markdown_url: https://blossom88.com/deploy/v0.md
summary: Ship a Next.js app from v0 to Blossom using its Git repository and production
  start command.
categories:
- deployment
- ai-built-apps
- nextjs
stack:
- TypeScript
- React
- Next.js
---

# Deploy a v0 App with AI on Blossom

[v0](https://v0.app/) builds web apps from prompts. Take your project's
Next.js code from GitHub to a running Blossom web Service.

![The deployed calendar's new event form.](/deploy/assets/images/ai-builder-exports/v0-event.webp)

![The new event on the v0-built calendar on Blossom.](/deploy/assets/images/ai-builder-exports/v0-calendar.webp)

## Ask Your Agent

> **Ask your AI agent:** Deploy my v0 project from this Git repository as a Next.js app on Blossom. Use the app's lockfile and production start command. Open it over HTTPS, run its main workflow, and show me how to redeploy.
>
> Follow this guide: https://blossom88.com/deploy/v0/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and choose a Blossom Cloud Location when you log in. You can also use [Blossom BYOC (bring your own cloud)](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#blossom-byoc).

## Have Ready

- **A Git repository with the v0 project** (Required): Choose the branch and include the package manager lockfile.
- **Existing service settings** (Later): Bring the URLs and credentials for backend services your app calls.

## How It Runs

| Part | Role | Where |
|---|---|---|
| Next.js | Pages and server routes | Public Blossom web Service |
| Existing integrations | Data, sign-in and other services your app uses | Your existing providers |

## Sync the project to GitHub

From the v0 project settings, connect GitHub and choose the repo owner.
Confirm which branch contains the revision you want to deploy. For a private
repo, connect its Git provider in Blossom.
[v0 GitHub guide](https://v0.app/docs/github)

## Check the production build

> Inspect my lockfile and build and start scripts. Check what services the
> app uses and which settings it needs in production.

Use the project's package manager to build and commit the updated lockfile
when a dependency changes. For this guide the app builds with `next build`
and its `start` script runs `next start`.

If your app reads `NEXT_PUBLIC_*` variables, set them for the build. Set
server credentials as runtime settings and move any provider-managed
integration settings the app actually needs.
[Build and runtime variables](/docs/reference/cli/env_var/push/)

## Deploy the Next.js server

> Deploy the selected Git branch to Blossom with a public web Service.

<details class="optional-reading" markdown="1">
<summary>Commands your agent runs</summary>

    blossom profile:show
    blossom app:create --data app.yml
    blossom environment:create --data environment.yml
    blossom git_repo:create --data git_repo.yml
    blossom environment:build_config:update --id environment-100 --data build_config.yml
    blossom service:create --data service.yml
    blossom environment:deploy --id environment-100 --follow

Set the build type to `buildpack` with the `heroku/builder:24` builder.
Use a web Service on port 3000 with
`npm run start -- --hostname 0.0.0.0 --port 3000`.

</details>

## Use the app and ship another release

> Open the Blossom URL, run the app's core workflow, then redeploy from Git
> and confirm the same URL works.

    blossom environment:deploy --id environment-100 --follow
    blossom release:list --environment environment-100

The tested [event calendar](https://github.com/origin-space/event-calendar)
adds events in the browser session. For a connected app, check sign-in and a
real read and write before switching the domain. Your app and its next release
share the same Blossom URL.

## What You Get

- Your v0 project on a Blossom HTTPS URL
- A Next.js production build and a running web Service
- Releases and logs from your Git repository

Tested on Blossom: A v0-built calendar accepted a new event in the browser after both the initial deploy and a fresh release.
