From 479f1657812b7bf01438607464dedaa148155301 Mon Sep 17 00:00:00 2001 From: Stavros Date: Thu, 16 Apr 2026 12:44:20 +0300 Subject: [PATCH] fix: fail app on empty app url before parsing --- internal/bootstrap/app_bootstrap.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/bootstrap/app_bootstrap.go b/internal/bootstrap/app_bootstrap.go index 18c5c94..18d9068 100644 --- a/internal/bootstrap/app_bootstrap.go +++ b/internal/bootstrap/app_bootstrap.go @@ -47,6 +47,10 @@ func (app *BootstrapApp) Setup() error { fmt.Println("Tinyauth is moving to an organization! All versions after v5.0.7 will be released under ghcr.io/tinyauthapp/tinyauth. Existing images will continue to work but new features and updates (including security ones) will only be released under the new image path.") // get app url + if app.config.AppURL == "" { + return fmt.Errorf("app URL cannot be empty, perhaps config loading failed") + } + appUrl, err := url.Parse(app.config.AppURL) if err != nil {