mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 10:26:03 +00:00
15 lines
307 B
Go
15 lines
307 B
Go
//go:build debug
|
|
|
|
package hub
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
// init lets debug builds override the Hub base URL via PHOTOPRISM_HUB_URL so
|
|
// developers can point tests at staging services without code changes.
|
|
func init() {
|
|
if debugUrl := os.Getenv("PHOTOPRISM_HUB_URL"); debugUrl != "" {
|
|
SetBaseURL(debugUrl)
|
|
}
|
|
}
|