all repos — website @ c1d191576c80dada81671834539ed93ebcb63461

My website

use correct envvar for sentry environment
Alan Pearce alan@alanpearce.eu
Wed, 17 Apr 2024 21:29:58 +0200
commit

c1d191576c80dada81671834539ed93ebcb63461

parent

176f1b2cc40963c82f67b586892c069a8e769aea

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M cmd/server/server.gocmd/server/server.go
@@ -35,7 +35,7 @@ func main() { 	err := sentry.Init(sentry.ClientOptions{
 		Dsn:         os.Getenv("SENTRY_DSN"),
 		Release:     os.Getenv("FLY_MACHINE_VERSION"),
-		Environment: os.Getenv("ENVIRONMENT"),
+		Environment: os.Getenv("ENV"),
 	})
 	if err != nil {
 		log.Panic("could not set up sentry")