fix: restore static workstation IP for local connection snippets and service urls

This commit is contained in:
Hitonabi
2026-06-25 23:12:27 +02:00
parent b6af1c1b4a
commit e88dfb8f98
5 changed files with 17 additions and 31 deletions
+1 -5
View File
@@ -7,9 +7,5 @@ export function cn(...inputs: ClassValue[]) {
export function resolveExternalUrl(url?: string): string {
if (!url) return ""
const currentHostname = window.location.hostname
if (currentHostname !== "127.0.0.1" && currentHostname !== "localhost" && currentHostname !== "") {
return url.replace(/127\.0\.0\.1|localhost/g, currentHostname)
}
return url
return url.replace(/127\.0\.0\.1|localhost/g, "192.168.178.151")
}