2023-11-10 14:05:15 +08:00
|
|
|
// Active User Credentials
|
|
|
|
export const STORAGE_AUTH_KEY = '__fel_lis__';
|
|
|
|
export const ENCRYPT_AUTH_KEY = 'felicity';
|
|
|
|
// development purposes only
|
|
|
|
export const USER_GROUP_OVERRIDE = ''; // 'ADMINISTRATOR'
|
|
|
|
|
2024-01-06 09:06:57 +08:00
|
|
|
export const REST_BASE_URL = import.meta.env.VITE_BASE_URL || "";
|
|
|
|
export const GQL_BASE_URL = `${REST_BASE_URL}/felicity-gql`;
|
|
|
|
|
2024-01-23 01:42:18 +08:00
|
|
|
|
2024-01-06 09:06:57 +08:00
|
|
|
export let WS_BASE_URL;
|
|
|
|
if (REST_BASE_URL?.includes("http")) {
|
|
|
|
WS_BASE_URL = `ws://${REST_BASE_URL.replace("http://", "")}/felicity-gql`;
|
|
|
|
} else {
|
|
|
|
WS_BASE_URL = `ws://${window.location.host}/felicity-gql`;
|
2024-01-24 01:13:37 +08:00
|
|
|
}
|