Integrate Vercel with Astra DB Serverless

query_builder 15 min

Vercel can use Astra DB Serverless to store and retrieve vectors for your frontend applications. This tutorial shows you how to integrate Astra DB Serverless with Vercel.

The DataStax Astra DB integration is available in the Vercel Integrations Marketplace.

Prerequisites

The steps on this page assume the following:

Add the DataStax Astra DB integration to your Vercel project

You can add the DataStax Astra DB integration using the Vercel Dashboard.

  1. In the Vercel Dashboard, select an existing project or create a new project.

  2. To integrate Astra into your Vercel project, navigate to the DataStax Astra DB page of the Vercel Integrations Marketplace.

  3. Select Add Integration.

    1. Select a Vercel account to install the integration to.

    2. Select a Vercel project to integrate with Astra.

    3. Select Install. You will be redirected to Astra to authorize the integration.

  4. Authenticate to Astra with GitHub, Google, or your email and password.

  5. Select the Astra organization this integration will have access to, and then select Continue. If you have multiple organizations, you can install the integration for each organization.

  6. To integrate your Astra database and Vercel project, complete the fields as follows:

    1. Select the Astra database this integration will have access to, and then select Continue.

    2. Select the Vercel project to link to your Astra database, and then select Complete Integration.

The Astra integration is now installed.

Confirm the integration between Vercel and Astra

After you add the integration, you should verify that it’s working.

  1. In the Astra Portal, select Settings > Tokens. A new token is generated with the role Integration Role - Vercel.

  2. In the Vercel Dashboard, go to your Vercel project, and then select Settings > Integrations. A new integration is generated with the name DataStax Astra DB.

If these items are present, the integration was successful.

Manage Astra’s access to Vercel

After you add the integration, Astra is granted access to Vercel. You can view and manage this access using the Vercel Dashboard.

  1. In the Vercel Dashboard, open your Vercel project.

  2. Select Settings > Integrations.

  3. To manage the Astra integration, select Configure to view the integration details:

    1. Go to the Permissions section to see the permissions the integration has. For more on Vercel permissions, see the Vercel documentation.

    2. Go to the Access section to see which Vercel projects the integration can access. You can have multiple projects in your Vercel team integrated with the same Astra database.

    3. Select Manage Access to change which projects the integration has access to.

Manage Vercel’s access to Astra

After you add the integration, Vercel is granted access to Astra. You can view and manage this access using the Astra Portal, or remove the integration entirely.

  1. In the Astra Portal, switch to the organization that you used when adding the integration.

  2. Select Settings in the main navigation, and then go to Roles.

  3. Find the Integration Role - Vercel role. This is the role that Astra generated when you added the integration to your Vercel project.

  4. Select more_vert More, and then select Edit Role.

    1. Use Add Permissions to control permissions for the Vercel integration role.

    2. Use Add Databases to control the Astra databases and keyspaces the Vercel integration has access to.

  5. Select Edit Role to save your changes.

Remove the Astra integration

To remove the Astra integration, you must delete the corresponding role and token from the Astra Portal.

  1. In the Astra Portal, switch to the organization that you used when adding the integration.

  2. Select Tokens in the main navigation, and go to the Manage Existing Tokens section.

    1. Find the token with the Integration Role - Vercel role. This is the token that Astra generated when you added the integration to your Vercel project.

    2. Select more_vert More, and then select Delete.

    3. To permanently delete the token, select Delete Token.

  3. Go to Roles.

    1. Find the Integration Role - Vercel role. This is the role that Astra generated when you added the integration to your Vercel project.

    2. Select more_vert More, and then select Delete Role.

    3. To permanently delete the role, select Delete Role.

The Astra integration is deleted and the Vercel project can no longer access your organization or databases.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com