Skip to content

Commit 29fca61

Browse files
committed
change to manualy deploy
1 parent 4a0c7ed commit 29fca61

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

README.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ The **Deploy to Netlify** button will take you to Netlify's deployment page. The
7878
1. Click the **Deploy to Netlify** button.
7979
2. Click **Connect to GitHub** and authenticate GitHub account.
8080
3. Fill in **Repository name** for your own GitHub repository.
81-
4. Enter the DATABASE_URL string, set in the previous step, in the **Set database URL** field.
81+
4. Enter the DATABASE_URL string, get in the previous step, in the **Set database URL** field.
8282
5. Click **Save & Deploy**.
8383

8484
![img](https://user-images.githubusercontent.com/35677990/208869376-c642e816-cb74-4012-9070-9a2cc301b72e.jpg)
@@ -97,21 +97,28 @@ Now wait for the deployment to complete, then you can view your site on the defa
9797
1. Create a [TiDB Cloud](https://tidbcloud.com/) account and get your free trial cluster.
9898
2. Create a [Vercel](https://vercel.com/signup) account.
9999

100-
### Deploy on Vercel
100+
### 1. Get connection details
101+
102+
1. Navigate to your TiDB Serverless cluster's dashboard.
103+
2. Get **Endpoint**, **Port** and **User** field from the Connection tab.
104+
3. Build your DATABASE_URL string: `mysql://<User>:<Password>@<Endpoint>:<Port>/rest_nextjs?sslaccept=strict`
105+
106+
![image](https://user-images.githubusercontent.com/35677990/202609001-ecf07f3d-a7a3-4376-9b7d-54f4096aaec6.jpg)
107+
108+
You will use this DATABASE_URL string to connect to TiDB Cloud Serverless cluster later.
109+
110+
### 2. Deploy on Vercel
101111

102112
The **Deploy** button will take you through Vercel's project creation flow. Vercel will help to clone this job to your own GitHub repository and automatically deploy it.
103113

104-
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-name=nextjs-prisma-example&repository-url=https%3A%2F%2Fgithub.com%2Ftidbcloud%2Fnextjs-prisma-example&integration-ids=oac_coKBVWCXNjJnCEth1zzKoF1j)
114+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-name=nextjs-prisma-example&repository-url=https%3A%2F%2Fgithub.com%2Ftidbcloud%2Fnextjs-prisma-example&env=DATABASE_URL&envDescription=TiDB%20Cloud%20connection%20string)
105115

106116
1. Click the **Deploy** button.
107117
2. Click **GitHub** button and authenticate GitHub account.
108118
3. Select your **Git Scope** and fill in **Repository Name** for your own GitHub repository.
109119
4. Click **Create** to create the git repository.
110-
5. Click **Add** to activate the integration procedures.
111-
6. In the integration window, choose **Prisma** framework and the cluster you created.
112-
7. Click **Add Integration and Return to Vercel**.
113-
114-
![image](https://user-images.githubusercontent.com/3690895/209358866-29fd564d-97d0-47bb-a7e7-c62e04db30c1.png)
120+
5. Enter the DATABASE_URL string, get in the previous step, in the **Value** field.
121+
6. Click **Deploy**.
115122

116123
🎉 Mission Completes.
117124

0 commit comments

Comments
 (0)