Skip to main content
Deploy your Restate services on Vercel. This guide covers project configuration, service registration, and security setup.
Follow the quickstart to try Next.js and Restate locally.

Deploying to Vercel

1

Set up your project

Start from the template:

Create your Restate + Vercel repository

2

Secure your service with request identity validation

Vercel deployments are public HTTP endpoints. Secure your service with request identity validation so that it only accepts requests from the Restate environment you trust.
Restate Cloud and BYOC environments create and manage the request identity key for you.Copy the environment’s public key from Developers > Security > HTTP endpoints in the Restate Cloud UI.
Clone the project locally and configure the key in your Restate SDK endpoint before deploying.
The public key is not secret, so it is safe to include it directly in your service source code or configuration files.
3

Deploy your project to Vercel

Create and deploy the project from the Vercel dashboard.For Restate to push requests to the Vercel project, you need Vercel Generated URLs to be accessible by Restate. You have two alternatives:
4

Get your Commit URL

Go to your Vercel deployment and copy the Commit URL (highlighted in black on the screenshot).
Vercel Commit URL
This lets that Restate address specific Vercel deployments, and handle versioning for you.
5

Register the service to Restate

Register the service with Restate via the UI:
Vercel Registration
In the advanced options, enable HTTP1.1 and optionally, set the header for the deployment protection bypass:
Vercel Registration Advanced
Read the CICD Automation section to set up automatic service registration on push to main.
6

Send your first request

You’re set up! Go to the Overview page > Greeter > Playground and start sending requests to your service.

CI/CD Automation

You can set up automation to automatically register new Restate service versions every time a Vercel deployment gets promoted.
If you’ve followed the steps above, then you already have the GitHub Actions workflow set up. All you need to do is to add the secrets below to your project.
.github/workflows/deploy.yml
This workflow needs the following GitHub Actions repository secrets:
  • RESTATE_ADMIN_URL: The Admin URL. You can find it in Developers > Admin URL
  • RESTATE_AUTH_TOKEN: Your Restate Cloud or BYOC auth token. To get one, go to Developers > API Keys > Create API Key, and make sure to select Admin for the role
    Token setup
  • VERCEL_PROTECTION_BYPASS_TOKEN: Only if you set up the Protection Bypass for Automation as described above.