radar host overrides

This commit is contained in:
Matt Walsh
2025-05-23 22:14:48 -05:00
parent 0be23ee988
commit 1609ab3d38
6 changed files with 25 additions and 5 deletions

10
src/overrides.mjs Normal file
View File

@@ -0,0 +1,10 @@
// read overrides from environment variables
const OVERRIDES = {};
Object.entries(process.env).forEach(([key, value]) => {
if (key.match(/^OVERRIDE_/)) {
OVERRIDES[key.replace('OVERRIDE_', '')] = value;
}
});
export default OVERRIDES;