cleanup: delete urls.js
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
// /config/appVersion
|
||||
export const APP_VERSION = "1.1.217";
|
||||
export const APP_VERSION = "1.1.218";
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
// /config/urls.js
|
||||
|
||||
// Dynamische Bestimmung der URLs basierend auf window.location.origin ohne Port
|
||||
let BASE_URL, SERVER_URL;
|
||||
const basePath = process.env.NEXT_PUBLIC_BASE_PATH;
|
||||
|
||||
if (typeof window !== "undefined") {
|
||||
const url = new URL(window.location.origin);
|
||||
const originWithoutPort = `${url.protocol}//${url.hostname}`; // z. B. http://10.10.0.13
|
||||
|
||||
BASE_URL = `${originWithoutPort}/api`;
|
||||
SERVER_URL = originWithoutPort;
|
||||
}
|
||||
|
||||
export { BASE_URL, SERVER_URL };
|
||||
Reference in New Issue
Block a user