feat: add BuildInfo component to display build time and update Docker workflow to pass build time as environment variable

This commit is contained in:
averel10
2026-03-13 09:18:30 +01:00
parent 59cacb832d
commit 4aac0b549b
4 changed files with 45 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ COPY --from=dependencies /app/node_modules ./node_modules
COPY . .
ENV NODE_ENV=production
ENV BUILD_TIME=${BUILD_TIME}
# Next.js collects completely anonymous telemetry data about general usage.
# Learn more here: https://nextjs.org/telemetry
@@ -63,6 +64,7 @@ WORKDIR /app
ENV NODE_ENV=production
ENV PORT=3000
ENV HOSTNAME="0.0.0.0"
ENV BUILD_TIME=${BUILD_TIME}
# Next.js collects completely anonymous telemetry data about general usage.
# Learn more here: https://nextjs.org/telemetry