fix: build timestamp conversion (#654)
This commit is contained in:
parent
5e70b145ff
commit
6610bc9651
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ const PackageJSON = JSON.parse(readFileSync(join(dirname(fileURLToPath(import.me
|
|||
|
||||
export const VERSION = PackageJSON.version;
|
||||
// https://reproducible-builds.org/docs/source-date-epoch/
|
||||
export const BUILD_TIMESTAMP = Number(process.env.SOURCE_DATE_EPOCH) || Date.now();
|
||||
export const BUILD_TIMESTAMP = Number(process.env.SOURCE_DATE_EPOCH) * 1000 || Date.now();
|
||||
|
||||
export const watch = process.argv.includes("--watch");
|
||||
export const IS_DEV = watch || process.argv.includes("--dev");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue