Initial clean project import
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user