Add some extra debug info on configured environment

This commit is contained in:
Jackson Harper
2024-05-13 13:44:28 +08:00
parent 619abb48b0
commit 4150ac8ded

View File

@ -69,6 +69,21 @@ public extension AppEnvironment {
"\(serverBaseURL.absoluteString)/api/graphql"
}
var name: String {
switch self {
case .demo:
return "Demo"
case .prod:
return "Production"
case .test:
return "Test"
case .local:
return "Local"
case .custom:
return "Self hosted"
}
}
var serverBaseURL: URL {
switch self {
case .demo: