Merge pull request #963 from benphelps/fix-settings-after-container-update

Fix settings after container update
This commit is contained in:
Jason Fischer authored and GitHub committed 2023-02-18 22:56:53 -08:00
commit 45946ddfe1
3 files changed
+8 -18

No files matched your search

+4 -1
View File
@@ -19,7 +19,10 @@ export default async function handler(req, res) {
return hash(readFileSync(configYaml, "utf8"));
});
const combinedHash = hash(hashes.join(""));
// 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 : '';
const combinedHash = hash(hashes.join("") + buildTime);
res.send({
hash: combinedHash,