feat: mark staging website clearly
CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Waiting to run
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Blocked by required conditions
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Blocked by required conditions
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Waiting to run
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Blocked by required conditions
CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Waiting to run
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Blocked by required conditions
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Blocked by required conditions
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Waiting to run
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Blocked by required conditions
This commit is contained in:
@@ -7,6 +7,7 @@ services:
|
||||
target: runner
|
||||
args:
|
||||
- NEXT_PUBLIC_SITE_URL=${NEXT_PUBLIC_SITE_URL:-https://stage.mozdit.hu}
|
||||
- NEXT_PUBLIC_DEPLOY_ENV=staging
|
||||
container_name: mozdit-app-staging
|
||||
ports:
|
||||
- "127.0.0.1:8081:3000" # Belső port — csak nginx-en keresztül elérhető
|
||||
@@ -15,6 +16,7 @@ services:
|
||||
- MONGODB_URI=${MONGODB_URI:-mongodb://mongodb:27017/mozdit}
|
||||
- MONGODB_DB=${MONGODB_DB:-mozdit}
|
||||
- NEXT_PUBLIC_SITE_URL=${NEXT_PUBLIC_SITE_URL:-https://stage.mozdit.hu}
|
||||
- NEXT_PUBLIC_DEPLOY_ENV=staging
|
||||
- NEXT_PUBLIC_COMPANY_NAME=${NEXT_PUBLIC_COMPANY_NAME:-mozdIT Bt.}
|
||||
- NEXT_PUBLIC_CONTACT_EMAIL=${NEXT_PUBLIC_CONTACT_EMAIL:-info@mozdit.hu}
|
||||
- LOKI_HOST=${LOKI_HOST:-http://loki:3100}
|
||||
|
||||
@@ -7,6 +7,8 @@ WORKDIR /app
|
||||
# NEXT_PUBLIC_* vars are inlined at build time — must be passed as build args
|
||||
ARG NEXT_PUBLIC_SITE_URL
|
||||
ENV NEXT_PUBLIC_SITE_URL=$NEXT_PUBLIC_SITE_URL
|
||||
ARG NEXT_PUBLIC_DEPLOY_ENV
|
||||
ENV NEXT_PUBLIC_DEPLOY_ENV=$NEXT_PUBLIC_DEPLOY_ENV
|
||||
|
||||
# Copy package files
|
||||
COPY package.json package-lock.json* ./
|
||||
|
||||
@@ -62,6 +62,7 @@ export default function RootLayout({
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
const isStaging = process.env.NEXT_PUBLIC_DEPLOY_ENV === 'staging';
|
||||
return (
|
||||
<html lang="hu" suppressHydrationWarning>
|
||||
<head>
|
||||
@@ -85,6 +86,11 @@ export default function RootLayout({
|
||||
style={{ background: 'var(--color-background)', color: 'var(--color-foreground)' }}
|
||||
>
|
||||
<ThemeProvider>
|
||||
{isStaging && (
|
||||
<div className="sticky top-0 z-[100] bg-amber-400 px-4 py-2 text-center text-xs font-extrabold tracking-[0.18em] text-amber-950 sm:text-sm">
|
||||
⚠ TESZTKÖRNYEZET — A STAGING OLDALT LÁTOD
|
||||
</div>
|
||||
)}
|
||||
<Header />
|
||||
<main className="flex-1">
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user