-
Click Add New... button and select the Project option on the right top corner of the Vercel dashboard page.
-
Select your forked
ossinsight-lite
repository and click the Import button. -
Click the Deploy button to deploy the forked
ossinsight-lite
to Vercel (It should fail in seconds, but don't worry).Your vercel project was created, but we need to add TiDB Cloud Integration to make it run!
-
Go to TiDB Cloud Integration page on Vercel, and click the Add Integration button.
-
Select the Vercel Account to add TiDB Cloud Integration to, and then click Continue button.
-
Select the Vercel project you've created before, and then click Continue button.
After clicking continue, the browser will open a new window, which is the integration page of TiDB Cloud.
-
Confirm the Vercel project and the TiDB Serverless cluster will be linked.
If there is no problem, click the Next button to continue.
If there is no problem, click the Add Integration and Return to Vercel button to finish the integration.
The TiDB Cloud integration with Vercel will automatically pass the database cluster connection information to the Vercel project through environment variables.
-
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.
Previous step: 2. Setup GitHub Action