File tree 3 files changed +4
-14
lines changed
3 files changed +4
-14
lines changed Original file line number Diff line number Diff line change 1
- NEXT_PUBLIC_CONVEX_URL = " https://warmhearted-scorpion-889.convex.cloud"
2
- TIGRIS_API_URL = " https://api.cell1.us-east-1.aws.tigrisdata.cloud/v1"
1
+ NEXT_PUBLIC_CONVEX_URL = " https://warmhearted-scorpion-889.edge. convex.cloud"
2
+ TIGRIS_API_URL = " https://api.cell1.us-east-1.aws.tigrisdata.cloud/v1"
Original file line number Diff line number Diff line change @@ -6,12 +6,7 @@ export const config = {
6
6
runtime : "edge" ,
7
7
} ;
8
8
9
- // Make sure we use the Edge endpoints.
10
- let url = process . env . NEXT_PUBLIC_CONVEX_URL ;
11
- if ( ! url . endsWith ( "edge.convex.cloud" ) ) {
12
- url = url . replace ( / c o n v e x .c l o u d $ / g, "edge.convex.cloud" ) ;
13
- }
14
-
9
+ const url = process . env . NEXT_PUBLIC_CONVEX_URL ;
15
10
const convex = new ConvexHttpClient ( url ) ;
16
11
17
12
const start = Date . now ( ) ;
Original file line number Diff line number Diff line change @@ -2,12 +2,7 @@ import { ConvexHttpClient } from "convex/browser";
2
2
import type { NextApiRequest , NextApiResponse } from "next" ;
3
3
import { api as convexApi } from "../../convex/_generated/api" ;
4
4
5
- // Make sure we use the Edge endpoints.
6
- let url = process . env . NEXT_PUBLIC_CONVEX_URL ;
7
- if ( ! url . endsWith ( "edge.convex.cloud" ) ) {
8
- url = url . replace ( / c o n v e x .c l o u d $ / g, "edge.convex.cloud" ) ;
9
- }
10
-
5
+ const url = process . env . NEXT_PUBLIC_CONVEX_URL ;
11
6
const convex = new ConvexHttpClient ( url ) ;
12
7
13
8
const start = Date . now ( ) ;
You can’t perform that action at this time.
0 commit comments