Next.js

Host a Next.js app your agent built

Your Next.js app runs here the way it runs on your machine: as one long-lived Node server. Server components, route handlers and server actions all work, and files you write to the volume are still there after the next deploy.

Paste this into your coding agent

Run curl -s https://vibecodedhost.com/deploy.md and follow its instructions to deploy this project.

Works in Claude Code, Codex, Cursor and anything else that can run a shell command.

The files

What your agent writes.

You do not have to write any of this. It is here so you can see how little there is, and check your agent's work if a deploy goes wrong.

With this manifest the app would be live at https://my-next-app.vibecodedhost.app. The name is yours to choose, as long as no other app has it.

Every field of vibe.json, explained →

vibe.json
{
  "version": 1,
  "name": "my-next-app",
  "containers": [
    {
      "name": "web",
      "build": {
        "context": ".",
        "dockerfile": "Dockerfile"
      },
      "port": 3000,
      "public": true,
      "env": {
        "NODE_ENV": "production",
        "DATABASE_PATH": "/data/app.db"
      },
      "volume": "/data",
      "healthPath": "/"
    }
  ]
}
Dockerfile
FROM node:22-slim AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

FROM node:22-slim
WORKDIR /app
ENV NODE_ENV=production PORT=3000 HOSTNAME=0.0.0.0
COPY --from=build /app ./
EXPOSE 3000
CMD ["npm", "start"]

Worth knowing

Next.js on Vibe Hosting

A server, not functions

Nothing is split into serverless functions. The app is one process that stays up, so in-memory state, background timers and long requests behave as they do locally.

Files you write stay written

Mount the volume at /data and keep SQLite, uploads or a cache there. It survives every redeploy.

NEXT_PUBLIC_ values are set at build time

Variables in vibe.json reach the running server. Anything the browser bundle needs has to be set in the Dockerfile before the build step.

Keep the build lean

Builds have a memory budget and a time limit: 10 minutes on a free app, 20 once subscribed. A multi-stage Dockerfile that installs with npm ci keeps well inside both.

Questions

Before you deploy.

Do server actions, route handlers and middleware work?

Yes. The app runs with next start as an ordinary Node server, so everything that works under next start locally works here.

Can I use a database with Next.js here?

Yes. Use SQLite on the volume for the simplest setup, or add Postgres as a second container and reach it at db:5432.

Why does prisma generate fail in my Docker build?

Because npm ci runs your postinstall script before the Prisma schema is in the image. Add COPY prisma ./prisma before the install step in the Dockerfile, or copy the whole project first. If a deployment does fail this way, the status your agent reads names the fix, so it can correct the Dockerfile and push again.

Built something else? Node.js and Express, FastAPI, Flask, Django, React and Vite, Apps with Postgres, Apps with SQLite, Docker Compose projects.

Your app could be online in a few minutes.

Copy the sentence, paste it into your agent, and read the address it gives you back. No account, no card, nothing to pay.

Paste this into your coding agent

Run curl -s https://vibecodedhost.com/deploy.md and follow its instructions to deploy this project.

Works in Claude Code, Codex, Cursor and anything else that can run a shell command.

Would you rather hold the key yourself?

Questions first, or stuck? Contact support and a person replies as soon as possible.