add config
This commit is contained in:
parent
300db9a687
commit
4bda2a35b4
15
src/const/config.ts
Normal file
15
src/const/config.ts
Normal file
@ -0,0 +1,15 @@
|
||||
export const useLocalServer = false;
|
||||
|
||||
export type Server = {
|
||||
serverAdress: string;
|
||||
wsServerAdress: string;
|
||||
};
|
||||
|
||||
export const server: Server = useLocalServer ? {
|
||||
serverAdress: "http://localhost:5000",
|
||||
wsServerAdress: "ws://localhost:5000",
|
||||
} : {
|
||||
serverAdress: "https://segin.one/mancala-backend-beta",
|
||||
wsServerAdress: "wss://segin.one/mancala-backend-beta/",
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user