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 13a5bc65b6
commit f7e06a3c12
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
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"`
}