aki-008 commited on
Commit
bcebe14
·
1 Parent(s): ad6937a

fix: replace localhost with relative paths for deployment

Browse files
Frontend/src/api/api.ts CHANGED
@@ -1,7 +1,7 @@
1
  import axios from "axios";
2
 
3
  const API = axios.create({
4
- baseURL: "http://localhost:8000/api/v1",
5
  });
6
 
7
  // Attach token automatically for every request
 
1
  import axios from "axios";
2
 
3
  const API = axios.create({
4
+ baseURL: "/api/v1",
5
  });
6
 
7
  // Attach token automatically for every request
Frontend/src/api/notesService.ts CHANGED
@@ -100,7 +100,7 @@ export const streamChatRequest = async (
100
 
101
  try {
102
  const response = await fetch(
103
- `http://localhost:8000/api/v1/notes/chat/${sessionId}?user_prompt=${encodeURIComponent(
104
  userMessage
105
  )}`,
106
  {
 
100
 
101
  try {
102
  const response = await fetch(
103
+ `/api/v1/notes/chat/${sessionId}?user_prompt=${encodeURIComponent(
104
  userMessage
105
  )}`,
106
  {
Frontend/src/pages/AiInterview.tsx CHANGED
@@ -14,7 +14,7 @@ import { useAuth } from "../components/context/AuthContext";
14
 
15
  // --- CONFIG ---
16
  const VAPI_PUBLIC_KEY = "6e393730-74a2-4690-8cb7-845ed3880488";
17
- const BACKEND_URL = "http://localhost:8000";
18
 
19
  const vapi = new Vapi(VAPI_PUBLIC_KEY);
20
 
 
14
 
15
  // --- CONFIG ---
16
  const VAPI_PUBLIC_KEY = "6e393730-74a2-4690-8cb7-845ed3880488";
17
+ const BACKEND_URL = "";
18
 
19
  const vapi = new Vapi(VAPI_PUBLIC_KEY);
20