Skip to content
Snippets Groups Projects
Commit ebf23a9d authored by Minseo Lee's avatar Minseo Lee
Browse files

fix: change protocol `ws` to `wss`

parent edb1145c
Branches
No related tags found
No related merge requests found
......@@ -37,8 +37,8 @@ class Connector {
}
async logout(): Promise<void> {
await fetchData('/user/logout', FETCH_METHOD.GET);
this.setLoginInstance(false);
await fetchData('/user/logout', FETCH_METHOD.GET);
}
async get<T>(url: string, payload?: any): Promise<T> {
......
......@@ -17,7 +17,7 @@ const DEV_API_URL = 'http://localhost:8080';
const PROD_API_URL = 'https://ajou-eats-api.seunglab.dev';
const DEV_SOCKET_URL = 'ws://localhost:8080';
const PROD_SOCKET_URL = 'ws://ajou-eats-api.seunglab.dev';
const PROD_SOCKET_URL = 'wss://ajou-eats-api.seunglab.dev';
const API_URL = process.env.NODE_ENV === 'production' ? PROD_API_URL : DEV_API_URL;
// const API_URL = PROD_API_URL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment