Platforms

Deploying to Netlify

Deploy your RivetKit app to [Netlify](https://netlify.com/).

Steps

Prerequisites

Prepare Your Application

Make sure your project is configured correctly for Netlify deployment.

Deploy to Netlify

  1. Connect your Git repository to Netlify:

    • Visit Netlify and sign in
    • Click “Add new site” > “Import an existing project”
    • Connect your Git provider and select your repository
  2. Configure build settings:

    • Build command and publish directory are configured in your netlify.toml
  3. Deploy your site:

    • Netlify will automatically build and deploy your app
    • You’ll receive a unique Netlify URL (e.g., https://amazing-app-123456.netlify.app)

More information on deployments is available in Netlify’s docs.

Set Environment Variables

  1. In your Netlify site dashboard, go to Site settings > Environment variables

  2. Add the following environment variables (provided after creating your project in the Rivet dashboard):

    • RIVET_ENDPOINT: Your Rivet backend endpoint
    • RIVET_PUBLIC_ENDPOINT: Your frontend-safe Rivet endpoint
  3. Redeploy your site to apply the environment variables

See Netlify’s environment variables docs for more details.

Connect and Verify

  1. Visit the Rivet dashboard
  2. Navigate to Connect > Netlify
  3. Skip to the Deploy to Netlify step
  4. Input your deployed Netlify site URL
    • e.g. https://amazing-app-123456.netlify.app/api/rivet
  5. Once it shows as successfully connected, click Done

Your Netlify deployment is now connected to Rivet.