Separate DEV_MODE (for assets + templates) and DEBUG (for logs + special routes)

This commit is contained in:
William Bouzourène 2025-01-24 13:54:31 +01:00
parent a1dfbde52e
commit 138aad9bd9
3 changed files with 7 additions and 4 deletions

View file

@ -7,8 +7,9 @@ import (
)
type Config struct {
Debug bool `env:"DEBUG"`
App struct {
Debug bool `env:"DEBUG"`
DevMode bool `env:"DEV_MODE"`
App struct {
ListenAddress string `env:"APP_LISTEN_ADDRESS"`
ListenPort uint `env:"APP_LISTEN_PORT"`
}