Platforms
Custom Platform
Integrate RivetKit with any other hosting platform of your choice.
Steps
Prerequisites
- Your RivetKit app
- If you don’t have one, see the Quickstart page or our Examples
- Access to the Rivet Cloud or a self-hosted Rivet Engine
- A hosting platform that supports running Node.js applications with HTTP endpoints
Deploy Your App
Deploy your RivetKit app to your hosting platform of choice. The specific steps will vary depending on your platform, but ensure:
- Your app is built and deployed
- The
/api/rivetendpoint is publicly accessible - Your app can receive incoming HTTP requests
Set Environment Variables
After creating your project on the Rivet dashboard, select “Custom” as your provider. You’ll be provided two environment variables to configure in your hosting platform:
RIVET_ENDPOINT- The endpoint for your app to communicate with RivetRIVET_PUBLIC_ENDPOINT- The public endpoint for clients to connect to actors
Add these environment variables to your hosting platform’s configuration.
Connect to Rivet
- Ensure your app is accessible via a public URL
- On the Rivet dashboard, paste your URL with the
/api/rivetpath into the connect form (e.g.https://my-app.example.com/api/rivet) - Click “Done”
Requirements
Your hosting platform must support:
- HTTP endpoints - Your app must be reachable via a public URL
- Environment variables - To configure the Rivet connection
- Persistent processes or serverless functions - To handle incoming requests to the
/api/rivetendpoint
Troubleshooting
Connection fails
- Verify your app is publicly accessible
- Check that the
/api/rivetendpoint returns a valid response - Ensure environment variables are correctly set
Actors not responding
- Confirm
RIVET_ENDPOINTandRIVET_PUBLIC_ENDPOINTare both configured - Check your hosting platform’s logs for connection errors