Add button to clear app environment after self hosting

This commit is contained in:
Jackson Harper 2023-12-28 19:33:45 +08:00
parent d1826be5a9
commit 82c8cf9cc3

View file

@ -90,6 +90,16 @@ struct SelfHostSettingsView: View {
.accentColor(.blue)
.frame(maxWidth: .infinity, alignment: .leading)
Button(action: {
AppEnvironment.setCustom(serverBaseURL: "https://api-prod.omnivore.app",
webAppBaseURL: "https://omnivore.app",
ttsBaseURL: "https://tts.omnivore.app")
dataService.switchAppEnvironment(appEnvironment: AppEnvironment.prod)
dismiss()
}, label: {
Text("Reset self hosting settings")
})
#if os(macOS)
Spacer()
HStack {