+FIX: add option to disable watchers even in dev mode

This commit is contained in:
Simon Martens
2026-01-27 18:39:22 +01:00
parent c578bd2ad5
commit de37145471
3 changed files with 11 additions and 3 deletions

View File

@@ -29,6 +29,7 @@ type Config struct {
// At least one of these should be set
Debug bool `json:"debug,omitempty" envconfig:"DEBUG"`
AllowTestLogin bool `json:"allow_test_login,omitempty" envconfig:"ALLOW_TEST_LOGIN"`
DisableWatchers bool `json:"disable_watchers,omitempty" envconfig:"DISABLE_WATCHERS"`
}
func NewConfigProvider(files []string, devfiles []string) *ConfigProvider {
@@ -71,6 +72,12 @@ func (c *ConfigProvider) Validate() error {
slog.Info("Debug mode is disabled")
}
if c.DisableWatchers {
slog.Info("Template watchers are disabled")
} else {
slog.Info("Template watchers are enabled")
}
return nil
}