mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-11 23:58:46 +00:00
Use HOMEPAGE_BUILDTIME to revalidate container restart/recreate
This commit is contained in:
parent
a42c50f1cc
commit
6701e3bd77
4 changed files with 11 additions and 9 deletions
|
@ -19,8 +19,8 @@ export default async function handler(req, res) {
|
|||
return hash(readFileSync(configYaml, "utf8"));
|
||||
});
|
||||
|
||||
// this ties hash to specific build which should force revaliation between versions
|
||||
const buildTime = process.env.NEXT_PUBLIC_BUILDTIME?.length ? process.env.NEXT_PUBLIC_BUILDTIME : '';
|
||||
// set to date by docker entrypoint, will force revalidation between restarts/recreates
|
||||
const buildTime = process.env.HOMEPAGE_BUILDTIME?.length ? process.env.HOMEPAGE_BUILDTIME : '';
|
||||
|
||||
const combinedHash = hash(hashes.join("") + buildTime);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue