diff --git a/README.md b/README.md index 69aa247..8b12618 100644 --- a/README.md +++ b/README.md @@ -49,4 +49,7 @@ Needs Bun (1.4) and Node (for Next.js). that runs Bun or containers (Railway, Render, Fly.io, Heroku), with `DATABASE_URL`, `AUTH_SECRET`, `API_URL` (its public address) and `WEB_URL` (the website's). +A staging site shows a slim "Staging" bar: when it's served from a `staging.` address (`hub.staging.t5de.dev`), +or with the website's `HUB_ENVIRONMENT=staging` (`production` hides it). + T5DE's proxies reach the API's address directly (sign-in and the WebSocket): `t5de-proxy signin -hub `. diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx index 7e7cd69..2ae3679 100644 --- a/apps/web/app/layout.tsx +++ b/apps/web/app/layout.tsx @@ -1,6 +1,7 @@ import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; import { Header } from "@/components/header"; +import { StagingBanner } from "@/components/staging-banner"; import { cn } from "@/lib/utils"; import "./globals.css"; @@ -16,6 +17,7 @@ export default function RootLayout({ children }: { children: React.ReactNode }) return ( +
{children}