Files
ComfyUI_frontend/apps/website/src
Glary-Bot 294d90f36e fix(website): require explicit HubSpot env vars; drop production fallback
import.meta.env.PROD is true for any production-mode build, including
Vercel preview deploys. The previous fallback meant preview/staging
deploys could submit test entries to the live HubSpot CRM whenever the
env vars weren't set. Drop the hardcoded fallback entirely so every
environment (production included) must set PUBLIC_HUBSPOT_PORTAL_ID and
PUBLIC_HUBSPOT_FORM_ID_CONTACT_SALES explicitly. When unset the submit
button is disabled and a console.warn flags the misconfiguration.

.env_example documents the production values in a comment for ops to
copy into Vercel project settings.

Renamed the fail-safe describe block to drop the now-misleading
"preview/dev" qualifier, since the fail-safe applies in every
environment.
2026-04-28 02:29:59 +00:00
..