Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yongbeom-Kim committed Nov 6, 2024
1 parent d34f860 commit 5311079
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
11 changes: 6 additions & 5 deletions peerprep/frontend/.env.development
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
VITE_AUTH_API_URL=http://localhost:3001/auth
VITE_USER_API_URL=http://localhost:3001/users
VITE_MATCH_API_URL=http://localhost:3000/matchingrequest
VITE_QUESTION_API_URL=http://localhost:8080/api/questions
VITE_WEBSOCKET_API_URL=ws://localhost:1234/
VITE_AUTH_API_URL=http://34.71.236.157:3001/auth
VITE_USER_API_URL=http://localhost:3001/api/users
VITE_MATCH_API_URL=http://34.71.236.157:3000/matchingrequest
VITE_QUESTION_API_URL=http://34.71.236.157:8080/api/questions
VITE_WEBSOCKET_API_URL=ws://34.71.236.157:1234/
VITE_ASSESSCODE_API_URL=http://localhost:8080/api/gpt/asses
6 changes: 3 additions & 3 deletions peerprep/frontend/.firebase/hosting.ZGlzdA.cache
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
index.html,1730874972057,ec81298ffacc4ba84533de8a55d587cbb26c239d8959ec3f06418f3ac5a3bab3
assets/index-DXi6gnUs.css,1730874972057,16e5c0bdf0c33c4778cd51661dd96e45a9e9b58e8bc88fbf706998b9c3233d77
assets/index-70nr2L2n.js,1730874972057,06d5de9e9cd8f39175fdc9ad4965f12b22bf0daa985b58ac3cc8f530351f21cf
index.html,1730884248298,65956f51d3e00a2df27ed1709878139e34dfd0657f68a76f994fa224337c4dcc
assets/index-Dha_BxQR.js,1730884248298,8b9394c112069af987f8ee15e935bf550e60f23e14d1eca81710abf2943b9429
assets/index-DXi6gnUs.css,1730884248298,16e5c0bdf0c33c4778cd51661dd96e45a9e9b58e8bc88fbf706998b9c3233d77
2 changes: 1 addition & 1 deletion peerprep/frontend/src/api/assescodeApi.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from 'axios';

const API_URL = 'http://localhost:8080/api/gpt/asses';
const API_URL = import.meta.env.VITE_ASSESSCODE_API_URL;

// Define a custom error class for API errors
export class ApiError extends Error {
Expand Down
2 changes: 1 addition & 1 deletion peerprep/frontend/src/api/userApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import axios, { AxiosError } from 'axios';
import { User } from '../models/User';

// Set up axios instance with base URL
const API_URL = "http://localhost:3001/api/users";
const API_URL = import.meta.env.VITE_USER_API_URL;

class ApiError extends Error {
constructor(message: string, public statusCode?: number) {
Expand Down

0 comments on commit 5311079

Please sign in to comment.