const { gitHash, buildTime } = require("./lib/buildInfo")
const release = gitHash // overwritten by CI with PROJECT_RELEASE (Sentry-Release-String)

const originURL = "https://__PROJECT__.code.testversion.online"
const apiClientBaseURL = "/api/"

const cryptchaSiteId = "6628f06a0938460001505119"

if (release && typeof context !== "undefined") {
    context.response.header("X-Release", release)
    context.response.header("X-Build-Time", buildTime)
}

module.exports = {
    release,
    buildTime,
    apiClientBaseURL,
    cryptchaSiteId,
    originURL,
}
