forked from cms/tibi-svelte-starter
yarn upgrade
This commit is contained in:
20
api/hooks/config-client.js
Normal file
20
api/hooks/config-client.js
Normal file
@@ -0,0 +1,20 @@
|
||||
const release = "__PROJECT__.dirty"
|
||||
|
||||
const originURL = "https://__PROJECT__.code.testversion.online"
|
||||
const apiClientBaseURL = "/api/"
|
||||
|
||||
const cryptchaSiteId = "6628f06a0938460001505119"
|
||||
|
||||
// @ts-ignore
|
||||
if (release && typeof context !== "undefined") {
|
||||
context.response.header("X-Release", release)
|
||||
}
|
||||
|
||||
const isMaster = release.includes("master")
|
||||
|
||||
module.exports = {
|
||||
release,
|
||||
apiClientBaseURL,
|
||||
cryptchaSiteId,
|
||||
originURL,
|
||||
}
|
||||
Reference in New Issue
Block a user