Environment Variable for dev branch

This commit is contained in:
Bingus_Violet 2024-01-25 23:15:12 -06:00
parent cbe3a92bf6
commit 185497ab46
2 changed files with 9 additions and 1 deletions

View file

@ -289,6 +289,14 @@ function pageUpdate() {
html = html.replace("{THUMBOR}", getThumbor())
if (process.env.BRANCH == "dev") {
html = html.replace("{OPPOSITE_URL}", "www")
html = html.replace("{OPPOSITE_BRANCH}", "Main")
} else {
html = html.replace("{OPPOSITE_URL}", "beta")
html = html.replace("{OPPOSITE_BRANCH}", "Beta")
}
fs.writeFileSync(path.join(__dirname, 'static/index.html'), html)
}