refactor hub dev server

- moved html replacement functionality from vite to go
This commit is contained in:
henrygd
2025-09-01 22:16:57 -04:00
parent fadfc5d81d
commit 86e87f0d47
4 changed files with 62 additions and 12 deletions

View File

@@ -112,6 +112,8 @@ func (h *Hub) initialize(e *core.ServeEvent) error {
// set URL if BASE_URL env is set
if h.appURL != "" {
settings.Meta.AppURL = h.appURL
} else {
h.appURL = settings.Meta.AppURL
}
if err := e.App.Save(settings); err != nil {
return err