Skip to content

Latest commit

 

History

History
80 lines (54 loc) · 3.45 KB

deploy-to-vercel.md

File metadata and controls

80 lines (54 loc) · 3.45 KB

Deploy to Vercel

Create a Vercel project for your forked repository

  1. Click Add New... button and select the Project option on the right top corner of the Vercel dashboard page.

    Add new project on Vercel

    Add new project on Vercel

  2. Select your forked ossinsight-lite repository and click the Import button.

    Import the forked repository to Vercel project

    Import the forked repository to Vercel project

  3. Click the Deploy button to deploy the forked ossinsight-lite to Vercel (It should fail in seconds, but don't worry).

    Configure Vercel project

    Configure Vercel project

    Deploy Vercel project failed

    Click go to project button

    Your vercel project was created, but we need to add TiDB Cloud Integration to make it run!

Integrate TiDB Serverless into Vercel project

  1. Go to TiDB Cloud Integration page on Vercel, and click the Add Integration button.

  2. Select the Vercel Account to add TiDB Cloud Integration to, and then click Continue button.

    Add TiDB integration to specify Vercel account

    Add TiDB Cloud integration to specify Vercel account

  3. Select the Vercel project you've created before, and then click Continue button.

    Add TiDB Cloud integration to specify Vercel project

    Add TiDB Cloud integration to specify Vercel project

    After clicking continue, the browser will open a new window, which is the integration page of TiDB Cloud.

  4. Confirm the Vercel project and the TiDB Serverless cluster will be linked.

    If there is no problem, click the Next button to continue.

    New TiDB Cloud integration page

    New TiDB Cloud integration page

    If there is no problem, click the Add Integration and Return to Vercel button to finish the integration.

    Configure TiDB Cloud integration page

    Configure TiDB Cloud integration page

    The TiDB Cloud integration with Vercel will automatically pass the database cluster connection information to the Vercel project through environment variables.

  5. Go to Deployments tab of the Vercel project and click the Redeploy button to redeploy your project, so that the environment variables can take effect.

    Redeploy Vercel project

    Redeploy Vercel project


Previous step: 2. Setup GitHub Action