This commit is contained in:
2021-03-22 15:59:05 +01:00
parent dd27483b16
commit 2ee7f650db
46 changed files with 5636 additions and 0 deletions

22
src/config.ts Normal file
View File

@@ -0,0 +1,22 @@
// @ts-check
import * as sentry from "./sentry"
export const title = "__PROJECT_TITLE__"
let _apiBaseURL =
typeof window !== "undefined" && window.localStorage?.getItem("apiBase")
export const apiBaseURL = _apiBaseURL || "/api/"
export const sentryDSN =
"https://95fad64e48484bd7b3e52e56416ac38e@sentry.basehosts.de/2"
export const sentryTracingOrigins = [
"localhost",
apiBaseURL,
// more api trace urls here
/^\//,
]
export const sentryEnvironment = "local"
// need to execute early for fetch wrapping
// will be uncommented via drone CI
// sentry.init(sentryDSN, sentryTracingOrigins, sentryEnvironment)