Deployment can often be the hardest part of building a full-stack application, especially when multiple moving parts are involved. In this guide, we'll walk through how to deploy the Kitsune Stack to production.
The Frontend (Vercel)
Vercel has native support for Turborepo. Simply import your GitHub repository, and Vercel will automatically detect the Next.js app in apps/web.
Ensure your Build Command is set to bun run build and the Install Command is bun install.
The Backend (Railway)
For the Express server (apps/server) and the background worker (apps/worker), Railway is an excellent choice.
- Connect your repository to Railway.
- Setup a PostgreSQL database and a Redis instance directly within your Railway project.
- Deploy two distinct services pointing to your repository, changing the Root Directory and start commands respectively.
By separating these concerns, you get cheap, infinitely scalable serverless frontends while maintaining a robust, stateful backend infrastructure!