---
title: Deploy a Lovable App with AI on Blossom
url: "/deploy/lovable/"
canonical_url: https://blossom88.com/deploy/lovable/
markdown_url: https://blossom88.com/deploy/lovable.md
summary: Export a Lovable app to Git and run its TanStack Start server on Blossom.
categories:
- deployment
- ai-built-apps
- tanstack-start
stack:
- TypeScript
- React
- TanStack Start
- Nitro
- Node.js
---

# Deploy a Lovable App with AI on Blossom

[Lovable](https://lovable.dev/) builds web apps from prompts. Deploy a current
TanStack Start project to Blossom as a Node.js server. Older React/Vite
projects can use the [Vite static guide](/deploy/vite/).

![A Lovable-built site rendered by its Nitro server on Blossom.](/deploy/assets/images/ai-builder-exports/lovable-home.webp)

![The Quickstart route of a Lovable export open on Blossom.](/deploy/assets/images/ai-builder-exports/lovable-quickstart.webp)

## Ask Your Agent

> **Ask your AI agent:** Deploy my Lovable app from Git to Blossom. Check whether it uses TanStack Start or Vite. For TanStack Start, build the Nitro Node server, keep the backend I already use, open a direct route, and verify a redeploy.
>
> Follow this guide: https://blossom88.com/deploy/lovable/

[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

- **Your Lovable Git export** (Required): Sync the project to Git and include its lockfile.
- **Existing backend settings** (Later): Collect the client and server settings separately when the app uses Lovable Cloud or Supabase.

## How It Runs

| Part | Role | Where |
|---|---|---|
| TanStack Start and Nitro | Server rendering and app routes | Public Blossom web Service |
| Existing backend | Sign-in, data and uploads when your app uses them | Your existing provider |

## Get the Git export

Sync the project from **Project settings → Git**, then tell your agent the
repository and branch. In `package.json`, `@tanstack/react-start` identifies
the server-rendered app.
[Lovable's external hosting guide](https://docs.lovable.dev/tips-tricks/external-deployment-hosting)

## Build the Nitro server

> Build my app with Nitro's Node.js server preset and run the standalone
> output in a Node.js 22 container.

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

Dockerfile for a project with bun.lock:

```dockerfile
FROM node:22-bookworm-slim AS build
WORKDIR /app
COPY package.json bun.lock ./
RUN npx --yes bun@1.3.14 install --frozen-lockfile
COPY . .
ENV NITRO_PRESET=node-server
RUN npm run build

FROM node:22-bookworm-slim
WORKDIR /app
ENV NODE_ENV=production HOST=0.0.0.0 PORT=3000
COPY --from=build /app/.output ./.output
USER node
EXPOSE 3000
CMD ["node", ".output/server/index.mjs"]
```

Exclude `.git`, `.env*`, `node_modules` and `.output` from the build context.
Use the install command for your repo's lockfile. If the project pins a
different Nitro target in `vite.config.ts`, change it to `node-server`.

For an app using its existing backend, set its browser-safe `VITE_*` variables
at build time and supply the matching Docker build args. Put private server
credentials in Blossom's runtime settings. Add the Blossom URL to auth redirects
before trying sign-in.

</details>

## Deploy to Blossom

> Deploy the Dockerfile from Git as a Blossom web Service on port 3000.

<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 `dockerfile` and the web command to
`node .output/server/index.mjs`.

</details>

## Open a deep link and redeploy

> Open a route directly, navigate to it from the home page, and run the same
> workflow after a new release.

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

The tested [ECP documentation site](https://github.com/evaluation-context-protocol/evaluationcontextprotocol)
serves its Quickstart page directly and through navigation. Your app gets the
same Git-to-release path. Exercise its server functions and backend flows
before moving real traffic.

## What You Get

- A running Lovable export on its own Blossom HTTPS URL
- A Node.js server for pages and server functions
- A repeatable build and release from Git

Tested on Blossom: A Lovable TanStack Start export served a deep link directly and navigated to it in the browser after a fresh release.
