feat: add umami
/ publish (push) Failing after 2m14s

This commit is contained in:
2026-03-08 16:11:57 +01:00
parent 01b24f830f
commit 1310b7b243
7 changed files with 40 additions and 9 deletions
+6
View File
@@ -10,6 +10,7 @@ type Cfg struct {
FileSystem *WebdavConfig `env:", prefix=FILESYSTEM_"`
Cache *ValkeyConfig `env:", prefix=CACHE_"`
Image *ImageConfig `env:", prefix=IMAGE_"`
Tracking *UmamiConfig `env:", prefix=TRACKING_"`
}
type WebdavConfig struct {
@@ -36,6 +37,11 @@ type ImageConfig struct {
Quality int `env:"QUALITY"`
}
type UmamiConfig struct {
ScriptSrc string `env:"SCRIPT_SRC"`
WebsiteID string `env:"WEBSITE_ID"`
}
func Read(ctx context.Context) (cfg Cfg, err error) {
cfg = Default()
err = envconfig.ProcessWith(ctx, &envconfig.Config{