# vercel-integration-example **Repository Path**: mirrors_TooTallNate/vercel-integration-example ## Basic Information - **Project Name**: vercel-integration-example - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-03 - **Last Updated**: 2026-05-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Vercel + Planetscale A [next.js](https://nextjs.org/) app deployed to [vercel](https://vercel.com) with a [planetscale](https://planetscale.com) integration. This example app uses the [planetscale-node](https://github.com/planetscale/planetscale-node) client to query the database ## Setup database - Install [Planetscale CLI](https://planetscale.com/cli) - Authenticate the CLI ```sh pscale auth login ``` - Create a new database (_skip this step if you already have a database_) ```sh pscale database create ``` - Create a `development` branch ```sh pscale branch create ``` - Connect to your branch ```sh pscale shell ``` - Insert example tables ```sql CREATE TABLE users ( id int NOT NULL AUTO_INCREMENT PRIMARY KEY, email varchar(255) NOT NULL, password varchar(255) NOT NULL, name varchar(255) ); ``` - Create a **deploy request** ```bash pscale deploy-request create ``` - _Deploy_ the **deploy request** ```bash pscale deploy-request deploy ``` - To find your ``, simply run: ```bash pscale deploy-request list ``` - Merge your `development` branch into `main` ```bash pscale deploy-request deploy ``` ## Clone & Deploy to vercel Deploy with Vercel - The integration will automatically add the following environment variables to your Vercel project(s) - `PLANETSCALE_DB` - `PLANETSCALE_ORG` - `PLANETSCALE_TOKEN` - `PLANETSCALE_TOKEN_NAME` _These environment variables are used by [planetscale-node](https://github.com/planetscale/planetscale-node) client to connect to your database_ - Re-deploy your application after the installation is complete and you will have a working app.