feat: Add staging banner to dev/test environment
Some checks failed
Dev Deployment (Zero Downtime) / deploy-dev (push) Has been cancelled

- Add StagingBanner component that displays on dev/staging/test domains
- Shows warning that site is not production-ready
- Automatically detects staging environment via hostname or env vars
- Dismissible banner with smooth animations
- Only shows on dev.dk0.dev or other test domains
This commit is contained in:
2026-01-09 14:54:16 +01:00
parent 4184e2fcf0
commit 0d44ebee17
2 changed files with 64 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ import { AnalyticsProvider } from "@/components/AnalyticsProvider";
import { ClientOnly } from "./components/ClientOnly";
import BackgroundBlobsClient from "./components/BackgroundBlobsClient";
import ChatWidget from "./components/ChatWidget";
import { StagingBanner } from "@/components/StagingBanner";
const inter = Inter({
variable: "--font-inter",
@@ -33,6 +34,7 @@ export default function RootLayout({
<AnalyticsProvider>
<ToastProvider>
<ClientOnly>
<StagingBanner />
<BackgroundBlobsClient />
</ClientOnly>
<div className="relative z-10">{children}</div>