Skip to content

Commit 0a400bd

Browse files
committed
back
1 parent 7b2382b commit 0a400bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function createClient(config: {
3232

3333
// Create the base axios client
3434
const axiosClient = createAxiosClient({
35-
baseURL: `${serverUrl.endsWith("/api") ? serverUrl : `${serverUrl}/api`}`,
35+
baseURL: `${serverUrl}/api`,
3636
headers: {
3737
"X-App-Id": String(appId),
3838
"X-Environment": env,
@@ -44,7 +44,7 @@ export function createClient(config: {
4444
});
4545

4646
const functionsAxiosClient = createAxiosClient({
47-
baseURL: `${serverUrl.endsWith("/api") ? serverUrl : `${serverUrl}/api`}`,
47+
baseURL: `${serverUrl}/api`,
4848
headers: {
4949
"X-App-Id": String(appId),
5050
"X-Environment": env,

0 commit comments

Comments
 (0)