Merge pull request 'updated hostname detection' (#2) from 1.1 into main
Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
@@ -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/>
|
||||||
|
|||||||
@@ -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/>
|
||||||
|
|||||||
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user