From a7e9f1d8ff370d3eec8368b06111fa13fc46d658 Mon Sep 17 00:00:00 2001 From: Marco Pedone Date: Wed, 29 Oct 2025 10:08:37 +0100 Subject: [PATCH] refactor: update storage configuration to use environment variables --- apps/backend/config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/backend/config/config.go b/apps/backend/config/config.go index 559a58b..c2c352f 100644 --- a/apps/backend/config/config.go +++ b/apps/backend/config/config.go @@ -68,8 +68,8 @@ func Load() *Config { Cfg.Images.Path = filepath.Join(pwd, "images") // Storage config - Cfg.Storage.Endpoint = filepath.Join(pwd, "STORAGE_URL") - Cfg.Storage.Token = filepath.Join(pwd, "STORAGE_TOKEN") + Cfg.Storage.Endpoint = getEnv("STORAGE_URL", "") + Cfg.Storage.Token = getEnv("STORAGE_TOKEN", "") // Server config Cfg.Server.Port = getEnvAsInt("PORT", 1323)