mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-11 16:24:11 +01:00
17 lines
323 B
Go
17 lines
323 B
Go
//go:build debug
|
|
// +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)
|
|
}
|
|
}
|