Platform 0.1.5: fail fast on a blank contact recipient

This commit is contained in:
2026-07-22 22:18:23 -05:00
parent f471462d05
commit 292a8e3087
2 changed files with 7 additions and 5 deletions
+5 -3
View File
@@ -64,6 +64,8 @@ mvn verify
| `SITE_BASE_URL` | absolute base for `og:url` |
| `VITE_ASSET_BASE` / `site.assets.base-url` | photo bucket |
`platform.contact.to` unset disables the contact starter, and the app won't start with a
`ContactController` that has nothing to send with — so a missing `CONTACT_TO` fails loudly rather than
silently dropping enquiries.
A missing `CONTACT_TO` **stops the app from starting**. That is deliberate: `application.yaml` maps it
to `platform.contact.to`, and an unset variable leaves the property present-but-empty, which is enough
to activate the contact starter. Without the `@NotBlank` check in `platform-starter-contact` the site
would come up, show a working contact form, and mail every enquiry to nobody. Better to fail on deploy
than to lose a week of orders.