update base config

This commit is contained in:
jejolare 2024-09-21 17:49:49 +07:00
parent 8effec24c9
commit 30ea7199f5
2 changed files with 1 additions and 12 deletions

View file

@ -1,7 +1,5 @@
const NET_MODE: "TEST" | "MAIN" = "MAIN";
const SERVER_PORT_DEV: number = 4596;
export {
NET_MODE,
SERVER_PORT_DEV
};

View file

@ -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();