Added env load from one directory higher

This commit is contained in:
Nik Afiq 2025-11-22 19:38:22 +09:00
parent 70c76c62c3
commit d819b04020

View File

@ -17,7 +17,7 @@ type Config struct {
type DBConfig struct {
Host string
Port string // NOTE: you use POSTGRES_PORT for this
Port string
User string
Password string
Name string
@ -28,6 +28,7 @@ type DBConfig struct {
func Load() Config {
_ = godotenv.Load()
_ = godotenv.Load("../.env")
cfg := Config{
Addr: getenv("ADDR", ":8082"),