Moved dev settings to flag

- Moved internal DEVELOPMENT_MODE flag to start parameters
This commit is contained in:
Toby Chui
2025-04-27 13:55:54 +08:00
parent ffc67ede12
commit 9781735983
6 changed files with 14 additions and 15 deletions

View File

@@ -324,7 +324,7 @@ func initAPIs(targetMux *http.ServeMux) {
// Register the standard web services URLs
var staticWebRes http.Handler
if DEVELOPMENT_BUILD {
if *development_build {
staticWebRes = http.FileServer(http.Dir("web/"))
} else {
subFS, err := fs.Sub(webres, "web")