mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-14 01:36:14 +00:00
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.