diff --git a/api/config.go b/api/config.go index 5d434d4..a4b0a04 100644 --- a/api/config.go +++ b/api/config.go @@ -36,5 +36,9 @@ func parseConfig() error { } } + if os.Getenv("CDN_PREFIX") == "" { + os.Setenv("CDN_PREFIX", os.Getenv("ORIGIN")) + } + return nil }