/
githubmirror
/
photoprism
Обзор
Документация
Войти
/
githubmirror
/
photoprism
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
internal/service/hub/debug.go
15 строк
307 B
Michael Mayer
Backend: Remove legacy Go build tags #5330
22 ноя 2025, 11:24
22 ноя 2025, 11:24
264bc78
Код
Авторство
О чём код?
//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) } }