v0.26.2 — show full app URL on deploy page

Domain field now displays subdomain.base_domain (e.g. wiki.demo-felhom.eu)
instead of just the base domain, matching the app card display.
Applies to both pre-deploy and post-deploy settings pages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-22 13:51:39 +01:00
parent f95f570670
commit f7556b0dad
3 changed files with 19 additions and 2 deletions
+6
View File
@@ -1,5 +1,11 @@
## Changelog ## Changelog
### v0.26.2 — Show Full App URL on Deploy Page (2026-02-22)
#### Fixed
- **`internal/stacks/deploy.go`** — `PreviewDeployValues()` now shows the full reachable URL (`subdomain.base_domain`) for domain-type fields instead of just the base domain. Informational only — stored env var remains the base domain.
- **`internal/web/handlers.go`** — Same fix applied to the already-deployed settings page: domain field displays `subdomain.base_domain` matching what the app card shows.
### v0.26.1 — Show Auto-Generated Values on Deploy Page (2026-02-22) ### v0.26.1 — Show Auto-Generated Values on Deploy Page (2026-02-22)
#### Changed #### Changed
+7 -1
View File
@@ -387,7 +387,13 @@ func (m *Manager) PreviewDeployValues(name string) (map[string]string, error) {
for _, field := range meta.DeployFields { for _, field := range meta.DeployFields {
switch field.Type { switch field.Type {
case "domain": case "domain":
result[field.EnvVar] = m.cfg.Customer.Domain // Show the full URL the app will be reachable at (subdomain.base_domain).
// This is informational only — DeployStack always stores the base domain.
if meta.Subdomain != "" {
result[field.EnvVar] = meta.Subdomain + "." + m.cfg.Customer.Domain
} else {
result[field.EnvVar] = m.cfg.Customer.Domain
}
case "secret": case "secret":
if field.Generate == "" { if field.Generate == "" {
continue continue
+6 -1
View File
@@ -259,7 +259,12 @@ func (s *Server) deployHandler(w http.ResponseWriter, r *http.Request, name stri
if alreadyDeployed && appCfg != nil { if alreadyDeployed && appCfg != nil {
for _, f := range meta.AutoGeneratedFields() { for _, f := range meta.AutoGeneratedFields() {
if val, ok := appCfg.Env[f.EnvVar]; ok { if val, ok := appCfg.Env[f.EnvVar]; ok {
autoFieldValues[f.EnvVar] = val // For domain fields show the full URL (subdomain.base_domain) as displayed on app cards.
if f.Type == "domain" && meta.Subdomain != "" {
autoFieldValues[f.EnvVar] = meta.Subdomain + "." + val
} else {
autoFieldValues[f.EnvVar] = val
}
} }
} }
} else if !alreadyDeployed { } else if !alreadyDeployed {