[feat](server, client, build): integrate dotenv for environment variable management (by @ryu31847)

- Added `github.com/joho/godotenv` for loading `.env` files in server and client.
- Implemented environment variable validation and logging in both main programs.
- Updated Makefile with `.env` export and validation steps for required variables.
- Simplified error handling in `writeErrorPage` rendering logic.
This commit is contained in:
dalbodeule
2025-12-08 00:13:30 +09:00
parent d9ac388761
commit 01cd524abe
5 changed files with 110 additions and 29 deletions

1
go.mod
View File

@@ -6,6 +6,7 @@ require (
entgo.io/ent v0.14.5
github.com/go-acme/lego/v4 v4.28.1
github.com/google/uuid v1.6.0
github.com/joho/godotenv v1.5.1
github.com/lib/pq v1.10.9
github.com/pion/dtls/v3 v3.0.7
github.com/prometheus/client_golang v1.19.0