update base config
This commit is contained in:
parent
8effec24c9
commit
30ea7199f5
2 changed files with 1 additions and 12 deletions
|
|
@ -1,7 +1,5 @@
|
|||
const NET_MODE: "TEST" | "MAIN" = "MAIN";
|
||||
const SERVER_PORT_DEV: number = 4596;
|
||||
|
||||
export {
|
||||
NET_MODE,
|
||||
SERVER_PORT_DEV
|
||||
};
|
||||
|
|
@ -1,12 +1,3 @@
|
|||
import { io } from 'socket.io-client';
|
||||
import { SERVER_PORT_DEV } from '../config/config';
|
||||
|
||||
// "undefined" means the URL will be computed from the `window.location` object
|
||||
const URL = process.env.NODE_ENV === 'production' ? undefined : `http://localhost:${SERVER_PORT_DEV}`;
|
||||
|
||||
|
||||
console.log("URL", URL);
|
||||
|
||||
|
||||
// @ts-ignore
|
||||
export const socket = io(URL);
|
||||
export const socket = io();
|
||||
Loading…
Add table
Reference in a new issue