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.
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.