Files
photoprism/internal/service/hub/debug.go
2025-10-04 14:16:11 +02:00

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)
}
}