React and Vite
Host a React or Vite app
A Vite build is a folder of static files, so the container is tiny: build with Node, serve with nginx. When the front end needs an API or a database, they go beside it as more containers of the same app.
Paste this into your coding agent
no key · no account
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-vite-app.vibecodedhost.app. The name is yours to choose, as long as no other app has it.
{
"version": 1,
"name": "my-vite-app",
"containers": [
{
"name": "web",
"build": {
"context": ".",
"dockerfile": "Dockerfile"
},
"port": 8080,
"public": true,
"healthPath": "/"
}
]
}FROM node:22-slim AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginxinc/nginx-unprivileged:1.27-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 8080server {
listen 8080;
root /usr/share/nginx/html;
location / {
try_files $uri $uri/ /index.html;
}
}Worth knowing
React and Vite on Vibe Hosting
Send unknown paths to index.html
VITE_ values are set at build time
Room to grow
Questions
Before you deploy.
Does this work for Vue, Svelte or plain HTML?
Yes. Anything that builds to a folder of static files is served the same way. Plain HTML needs no build stage at all.
Built something else? Next.js, Node.js and Express, FastAPI, Flask, Django, Apps with Postgres, Apps with SQLite, Docker Compose projects.
Deploy from
Use the agent you already have.
- Claude CodeTerminal, IDE and desktopDeploy from Claude Code →
- CodexTerminal, IDE and cloudDeploy from Codex →
- CursorEditorDeploy from Cursor →
- OpenCodeTerminalDeploy from OpenCode →
- Gemini CLITerminalDeploy from Gemini CLI →
- GitHub CopilotEditor and terminalDeploy from GitHub Copilot →
- WindsurfEditorDeploy from Windsurf →
- ClineEditor extensionDeploy from Cline →
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
no key · no account
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.