1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-12-21 11:10:08 +01:00

🔧 Use .test endpoint for debug builds

This commit is contained in:
2025-10-01 12:36:06 +02:00
parent fd24e81190
commit 137894fad0
2 changed files with 7 additions and 3 deletions

View File

@@ -154,8 +154,12 @@ struct Constants {
static let EarlyAccessChangelog = url("https://phpmon.app/early-access/release-notes")
// API endpoints (via api.phpmon.app)
static let UpdateCheckEndpoint = url("https://api.phpmon.app/api/v1/update-check")
// API endpoints
#if DEBUG
static let UpdateCheckEndpoint = url("https://api.phpmon.test/api/v1/update-check")
#else
static let UpdateCheckEndpoint = url("https://api.phpmon.app/api/v1/update-check")
#endif
// GitHub URLs (do not alias these)
static let GitHubReleases = url("https://github.com/nicoverbruggen/phpmon/releases")