Overview
BunShip Pro is a monorepo with two deployable apps:| App | Port | What It Is |
|---|---|---|
apps/api | 3000 | Elysia REST API |
apps/web | 3001 | TanStack Start frontend |
Environment Variables
The frontend needs one key variable:Vercel
The simplest deployment option for the frontend.Configure the frontend
- Root directory:
apps/web - Build command:
bun run build - Output directory:
.output - Set
VITE_API_URLin environment variables
Deploy the API separately
The API can run on any platform that supports Bun or Docker: Railway, Fly.io, a VPS, or a container service. See the API deployment guides.
Docker
ADockerfile is included for the API. For the frontend, you can build a static export or run it as a Node.js server.
Domain Setup
A typical production setup:| Domain | Points To |
|---|---|
app.yourdomain.com | Frontend (Vercel or static host) |
api.yourdomain.com | API (Railway, Fly.io, Docker, VPS) |
VITE_API_URL=https://api.yourdomain.com on the frontend and APP_URL=https://app.yourdomain.com on the API so redirects and CORS work correctly.
CORS
The API is pre-configured to accept requests from the frontend origin. Update the CORS allowed origins in your.env when you deploy to production:

