add example env, "improve" selfhostability

This commit is contained in:
bignutty 2024-07-17 17:21:19 +02:00
parent 99bac88155
commit 07ceaac9d9
5 changed files with 108 additions and 8 deletions

View file

@ -36,6 +36,8 @@ async function getTestConfig(){
}
async function hasFeature(context, feature){
if(!process.env.TESTING_CONFIG_URL) { console.warn("Test service config URL is missing, test features will be disabled."); return false; };
// We need to load the test config first
if(TESTING_REVISION == "-1") await getTestConfig();