about summary refs log tree commit diff stats
path: root/internal/config/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/config/config.go')
-rw-r--r--internal/config/config.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index b5f2ee4..33ce1da 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -12,6 +12,7 @@ import (
 )
 
 var Version string
+var DevMode bool
 
 type URL struct {
 	*url.URL
@@ -127,6 +128,8 @@ func GetConfig(filename string, log *log.Logger) (*Config, error) {
 		}
 	}
 
+	DevMode = config.Web.Environment == "development"
+
 	config.Web.ContentSecurityPolicy.ScriptSrc = append(
 		config.Web.ContentSecurityPolicy.ScriptSrc,
 		config.Web.BaseURL.JoinPath("/static/").String(),