Platforms
Deploying to Vercel
Deploy your RivetKit app to Vercel.
Guide
Prerequisites
- Vercel account
- Access to the Rivet Cloud or a self-hosted Rivet Engine
Prepare Your Application
Make sure your project is configured correctly for Vercel deployment.
Your Next.js project should have the following structure:
src/app/api/rivet/[...all]/route.ts: RivetKit route handlersrc/actors.ts: Actor definitions and registry
See the Next.js quickstart or the Next.js template to get started.
Your Hono project needs:
- A
vercel.jsonfile with the Hono framework specified:
vercel.json
- Your server file must import from
"hono"for Vercel to recognize the framework:
src/server.ts
- Use
.tsfile extensions in imports and configure yourtsconfig.json:
tsconfig.json
See the Hello World template for a complete example.
For more details on Hono deployments, see Vercel’s Hono documentation.
Vercel currently supports Next.js and Hono frameworks for RivetKit deployments.
For other frameworks, consider deploying to Railway, Kubernetes, or another platform.
Deploy to Vercel
- Connect your GitHub project to Vercel
- Select your repository containing your RivetKit app
- Vercel will deploy your app
More information on deployments are available in Vercel’s docs.
Connect and Verify
- Visit the Rivet dashboard
- Navigate to Connect > Vercel
- Skip to the Deploy to Vercel step
- Input your deployed Vercel site URL
- e.g.
https://my-app.vercel.app/api/rivet
- e.g.
- Once it shows as successfully connected, click Done
Your Vercel Functions deployment is now connected to Rivet.