updated hostname detection

This commit is contained in:
2026-01-16 19:29:41 +02:00
parent 89c162e276
commit 1609b4e04c
3 changed files with 2 additions and 3 deletions

View File

@@ -1854,7 +1854,7 @@ export default function AdminPage() {
<Card className="mt-8"> <Card className="mt-8">
<CardContent className="py-3"> <CardContent className="py-3">
<div className="text-center text-xs text-gray-500"> <div className="text-center text-xs text-gray-500">
סביבה: {instanceName || process.env.NEXT_PUBLIC_HOSTNAME || process.env.HOSTNAME || "לא זוהה"} סביבה: {instanceName || "לא זוהה"}
<br/> <br/>
גרסה: {process.env.APPVERSION || "לא הוצהר ב-Dockerfile!"} גרסה: {process.env.APPVERSION || "לא הוצהר ב-Dockerfile!"}
<br/> <br/>

View File

@@ -212,7 +212,7 @@ export default function DashboardPage() {
<Card className="mt-8"> <Card className="mt-8">
<CardContent className="py-3"> <CardContent className="py-3">
<div className="text-center text-xs text-gray-500"> <div className="text-center text-xs text-gray-500">
סביבה: {instanceName || process.env.NEXT_PUBLIC_HOSTNAME || process.env.HOSTNAME || "לא זוהה"} סביבה: {instanceName || "לא זוהה"}
<br/> <br/>
גרסה: {process.env.APPVERSION || "לא הוגדרה גרסה ב-Dockerfile!"} גרסה: {process.env.APPVERSION || "לא הוגדרה גרסה ב-Dockerfile!"}
<br/> <br/>

View File

@@ -1,7 +1,6 @@
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {
env: { env: {
HOSTNAME: process.env.HOSTNAME || 'vmx-k3s-01',
APPVERSION: '1.1.0' APPVERSION: '1.1.0'
}, },
experimental: { experimental: {