Check out v4 of the Fauna CLI
v4 of the Fauna CLI is now in beta. The new version introduces enhancements to the developer experience, including an improved authentication workflow. To get started, check out the CLI v4 quick start. |
Vercel integration
The Fauna integration for Vercel lets you easily create and connect a Fauna database to your Vercel projects.
Before you start
To set up the integration, you’ll need a Vercel account with one or more projects.
Add Fauna to a Vercel project
-
Log in to the Fauna Dashboard. You can sign up for a free account at https://dashboard.fauna.com/register.
-
In the same browser, log in to https://vercel.com/login
-
Click Add Integration.
-
In the modal:
-
Select an account, if prompted.
-
Select the projects to add the integration to.
Then click Continue.
-
-
If prompted, accept the required permissions and click Add Integration.
-
In the modal, create a new Fauna database or select an existing database for the project(s).
-
Click Install.
Environment variables
The integration sets two environment variables on install:
-
FAUNA_DB_DOMAIN
: Thedb.fauna.com
domain used to route requests to Fauna. -
FAUNA_ADMIN_KEY
: A key for the Fauna database. The key has the built-inadmin
role for the project’s Fauna database.
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!