diff --git a/Dockerfile b/Dockerfile index f85c2b2..c4c27ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,6 +50,11 @@ RUN test -n "$NEXT_PUBLIC_PB_URL" \ ENV NEXT_TELEMETRY_DISABLED=1 ENV NODE_ENV=production +# The commit being built, supplied by Ship. Declared late so the layers above +# stay cached; it is empty for builds that do not pass it. +ARG NEXT_PUBLIC_APP_COMMIT +ENV NEXT_PUBLIC_APP_COMMIT=${NEXT_PUBLIC_APP_COMMIT} + # `next build --webpack` is deliberate: @ducanh2912/next-pwa is Webpack-only # and is what generates public/sw.js + public/workbox-*.js. Dropping the flag # silently ships an app with no service worker and no offline install. diff --git a/app/layout.tsx b/app/layout.tsx index 53585d0..e913a17 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -2,6 +2,7 @@ import "./globals.css"; import type { Metadata, Viewport } from "next"; import { ThemeProvider } from "@/components/ThemeProvider"; import { SessionLifecycle } from "@/components/auth/SessionLifecycle"; +import { BuildStamp } from "@/components/BuildStamp"; export const metadata: Metadata = { title: "Mega Plant Dashboard", @@ -45,7 +46,7 @@ export default function RootLayout({ children }: { children: React.ReactNode }) />
-