feat: add BuildInfo component to display build time and update Docker workflow to pass build time as environment variable
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user