fix all issues

This commit is contained in:
2025-12-04 10:59:46 +08:00
parent e4946b7ad7
commit ca49e8e24b
4 changed files with 184 additions and 86 deletions
+7
View File
@@ -179,6 +179,13 @@ func main() {
log.Fatal("GO_ENV is not set in main. Please set the GO_ENV environment variable.")
}
// Validate JWT_KEY is set
jwtKey := os.Getenv("JWT_KEY")
if jwtKey == "" {
log.Fatal("JWT_KEY is not set. Please set the JWT_KEY environment variable.")
}
log.Println("JWT_KEY loaded successfully")
DSN := os.Getenv("DSN")
if DSN == "" {
log.Fatal("Sentry DSN is not set. Please set the DSN environment variable.")