rdev/internal/adapter/templates/templates
jordan ad1f19739d
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix: call config.MustInit() before config.Load() so Viper reads env vars
Without MustInit(), viper.AutomaticEnv() is never called, so Viper
cannot read environment variables injected by K8s secrets (envFrom).
This caused DATABASE_URL to always appear empty in deployed services,
forcing them into standalone/in-memory mode even when a database was
provisioned.

os.Getenv() calls like JWT_SECRET worked fine (direct syscall).
Viper-backed reads like DATABASE_URL did not (require AutomaticEnv).

Added pkgconfig.MustInit() call at the top of main() in both the
service component template and the full-monorepo example-api.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 04:25:38 -07:00
..
astro-landing chore: accumulated platform hardening and CI fixes 2026-02-10 23:16:56 -07:00
components fix: call config.MustInit() before config.Load() so Viper reads env vars 2026-02-23 04:25:38 -07:00
default chore: accumulated platform hardening and CI fixes 2026-02-10 23:16:56 -07:00
go-api chore: accumulated platform hardening and CI fixes 2026-02-10 23:16:56 -07:00
skeleton fix: commit usePersonaGeneration.ts skeleton template 2026-02-23 03:59:31 -07:00