# Connect with Vercel

You can connect any of your Vercel projects with your SingleStore Helios workspaces using the [SingleStore Helios - Vercel](https://vercel.com/integrations/singlestoredb-cloud) integration. This integration allows you to build applications using Vercel and SingleStore Helios. To connect your Vercel project:

1. [Set up a Vercel project](https://docs.singlestore.com/#section-idm4647015618432033965095627924.md).

2. [Connect the project to your SingleStore Helios workspace](https://docs.singlestore.com/#section-idm4647015777468833965097811681.md).

3. [Build and deploy your application](https://docs.singlestore.com/#section-idm4539956100372833965113447449.md).

## Prerequisites

* A Vercel account.

## Connect Vercel to SingleStore Helios

## Set up a Vercel Project

On the Vercel Dashboard, [create a new project](https://vercel.com/docs/projects/overview#creating-a-project). You can also leverage one of Vercel's templates, such as [Next.js Boilerplate](https://vercel.com/templates/next.js/nextjs-boilerplate), which facilitates the development of your web application.

## Connect to your SingleStore Helios Workspace

Once your Vercel project is deployed, perform the following tasks:

1. Go to the [SingleStore Helios - Vercel](https://vercel.com/integrations/singlestoredb-cloud) integration page, and select **Add Integration**.

2. On the **Add SingleStoreDB Cloud** dialog, select your Vercel account in which to add the integration, and then select **Continue**.

   ![](https://images.contentstack.io/v3/assets/bltac01ee6daa3a1e14/blt107e4d249a83e420/6a2c43cca36d0a7ba0b82163/vercel_1-yMlPBT.png)

3. Select the project(s) to integrate with your workspace, and then select **Continue**.

   ![](https://images.contentstack.io/v3/assets/bltac01ee6daa3a1e14/bltec9a263eb7a7f4b8/6a2c43c68db798d18b6bd030/vercel_2-3xytbR.png)

4. Verify the permissions, and select **Add Integration**.

   ![](https://images.contentstack.io/v3/assets/bltac01ee6daa3a1e14/blt4800becb5836f3cb/6a2c43c8f75646da48060da6/vercel_3-7Ukti9.png)

5. In the dialog that opens, log in or sign up for the Cloud Portal.

6. If you have already created a workspace, select it from the **Workspace** list, and then select **Connect**. If there aren't any active workspaces, you can create a new workspace and then select it.

Your Vercel project is now connected to your workspace. The project will now have three additional environment variables (go to **\<your\_project> -> Settings -> Environment Variables**):

* `SINGLESTORE_WORKSPACE_HOST`
* `SINGLESTORE_WORKSPACE_USERNAME`
* `SINGLESTORE_WORKSPACE_PASSWORD`

## Build and Deploy

There are multiple options available for building and deploying your application. For example, for a basic deployment, you can use Vercel Functions and [create a serverless function](https://vercel.com/docs/functions/serverless-functions/quickstart#create-a-serverless-function). The following example connects to SingleStore Helios from a serverless function using the [Data API](https://docs.singlestore.com/cloud/reference/data-api.md):

```javascript
var SingleStoreClient = require('@singlestore/http-client');
var instance = SingleStoreClient.ApiClient.instance;

var BasicAuth = instance.authentications['BasicAuth'];
BasicAuth.username = process.env.SINGLESTORE_WORKSPACE_USERNAME;
BasicAuth.password = process.env.SINGLESTORE_WORKSPACE_PASSWORD;

instance.basePath = 'https://' + process.env.SINGLESTORE_WORKSPACE_HOST;

// Get the API handle. var api = new SingleStoreClient.HttpApi();

export default function handler(req, res) {
    api.rows({
        queryInput: {
            database: 'mydatabase',
            sql: 'SELECT * FROM purchases LIMIT 200;'
        }
    }).then(dbResponse => {
        res.send(dbResponse.results[0].rows);
    }).catch(err => {
        res.send(err);
    });
}

```

Refer to [Connect to Your Workspace](https://docs.singlestore.com/cloud/connect-to-singlestore.md) for additional connectivity options that suit your application stack.

***

Modified at: May 13, 2026

Source: [/cloud/load-data/integrate-with-singlestore-helios/connect-with-vercel/](https://docs.singlestore.com/cloud/load-data/integrate-with-singlestore-helios/connect-with-vercel/)

(An index of the documentation is available at /llms.txt)
