1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-06-30 23:21:29 -04:00

freeze build timestamp via an environment variable

This commit is contained in:
2022-03-18 17:41:27 -04:00
parent 5912cd1356
commit f870c5c796
6 changed files with 20 additions and 6 deletions

View File

@ -23,6 +23,9 @@ module.exports = (phase, { defaultConfig }) => {
trailingSlash: true,
productionBrowserSourceMaps: true,
env: {
// freeze build timestamp for when serverless pages need a "last updated" date:
RELEASE_DATE: new Date().toISOString(),
// check if we're running locally via `next dev`:
IS_DEV_SERVER: phase === PHASE_DEVELOPMENT_SERVER,
},
images: {