Skip to content

Commit 9a5495c

Browse files
committed
fi url for frontend
1 parent b7653d5 commit 9a5495c

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Client/src/api/document.api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import axios from "axios";
22

33
const api = axios.create({
4-
baseURL: import.meta.env.VITE_API_URL || "http://localhost:3000/api",
4+
baseURL: `${import.meta.env.VITE_API_URL}/api`,
55
withCredentials: true,
66
});
77

Client/src/api/workspace.api.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ export interface CreateWorkspaceDto {
4040
}
4141

4242
const api = axios.create({
43-
baseURL:
44-
import.meta.env.VITE_API_URL || "http://localhost:3000/api/workspace",
43+
baseURL: `${import.meta.env.VITE_API_URL}/api/workspace`,
4544
withCredentials: true,
4645
});
4746

0 commit comments

Comments
 (0)