diff --git a/cmd/http/main.go b/cmd/http/main.go index 73bf947..e8679af 100644 --- a/cmd/http/main.go +++ b/cmd/http/main.go @@ -26,7 +26,11 @@ import ( ) //go:embed public/* -var staticFileDir embed.FS +var _staticFileDir embed.FS +var staticFileDir = func() embed.FS { + panic("if dev mode then return live") + return _staticFileDir +} func Main() { foo := flag.String("foo", "bal", "bal or reg")