Skip to content

Commit 07bfee5

Browse files
committed
Remove reverse proxy identifiers from backend URL
1 parent 4b5dce5 commit 07bfee5

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

frontend/src/config/api.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const isProduction = import.meta.env.PROD;
66
export const SERVER_URL = isProduction
77
? (import.meta.env.VITE_SERVER_URL || 'https://talketeer.onrender.com')
88
: (import.meta.env.VITE_DEV_SERVER_URL || 'https://localhost:3000');
9-
export const API_URL = isProduction ? SERVER_URL + '/talketeer/api' : SERVER_URL + '/api';
9+
export const API_URL = SERVER_URL + '/api';
1010

1111
export const SOCKET_SERVER_URL = SERVER_URL;
1212

frontend/src/socket.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@ import { io } from 'socket.io-client';
22
import { SOCKET_SERVER_URL } from './config/api.config';
33
import type { TalketeerSocket } from './types/socket.types';
44

5-
const socketPath = import.meta.env.PROD ? '/talketeer/socket.io/' : '/socket.io/'
6-
7-
export const socket: TalketeerSocket = io(SOCKET_SERVER_URL, { withCredentials: true, autoConnect: false, path: socketPath });
5+
export const socket: TalketeerSocket = io(SOCKET_SERVER_URL, { withCredentials: true, autoConnect: false });

0 commit comments

Comments
 (0)