15 lines
416 B
TypeScript
15 lines
416 B
TypeScript
import { AppConfig } from "../../../src/config";
|
|
|
|
function normalizeAuthServerUrl(apiBaseUrl: string): string {
|
|
return String(apiBaseUrl || "")
|
|
.trim()
|
|
.replace(/\/api\/?$/i, "")
|
|
.replace(/\/+$/, "");
|
|
}
|
|
|
|
export const AUTH_SERVER_URL = normalizeAuthServerUrl(
|
|
process.env.AUTH_SERVER_URL || AppConfig.apiBaseUrl || "http://152.136.232.83:3002"
|
|
);
|
|
|
|
export const USE_REMOTE_AUTH = true;
|