cleanup: delete urls.js

This commit is contained in:
ISA
2025-06-02 14:36:49 +02:00
parent d887c49d4f
commit 96b793c9a2
2 changed files with 1 additions and 16 deletions

View File

@@ -1,2 +1,2 @@
// /config/appVersion
export const APP_VERSION = "1.1.217";
export const APP_VERSION = "1.1.218";

View File

@@ -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 };