add alpha to config
This commit is contained in:
parent
2ea22f5303
commit
2cc3d7cd0d
@ -1,4 +1,5 @@
|
|||||||
export const useLocalServer = false;
|
export const useLocalServer = false;
|
||||||
|
export const isAlpha = true;
|
||||||
|
|
||||||
export type Server = {
|
export type Server = {
|
||||||
serverAdress: string;
|
serverAdress: string;
|
||||||
@ -8,6 +9,9 @@ export type Server = {
|
|||||||
export const server: Server = useLocalServer ? {
|
export const server: Server = useLocalServer ? {
|
||||||
serverAdress: "http://localhost:5000",
|
serverAdress: "http://localhost:5000",
|
||||||
wsServerAdress: "ws://localhost:5000",
|
wsServerAdress: "ws://localhost:5000",
|
||||||
|
} : isAlpha ? {
|
||||||
|
serverAdress: "https://segin.one/mancala-backend-alpha",
|
||||||
|
wsServerAdress: "wss://segin.one/mancala-backend-alpha/",
|
||||||
} : {
|
} : {
|
||||||
serverAdress: "https://segin.one/mancala-backend-beta",
|
serverAdress: "https://segin.one/mancala-backend-beta",
|
||||||
wsServerAdress: "wss://segin.one/mancala-backend-beta/",
|
wsServerAdress: "wss://segin.one/mancala-backend-beta/",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user