mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-14 01:36:14 +00:00
- Production HubSpot Portal ID and Form GUID are now used only when import.meta.env.PROD is true. Local dev and Vercel preview deploys fail-safe with the submit button disabled unless the env vars are explicitly set, so non-prod runs cannot pollute the live CRM. - Add a privacy disclosure under the submit button (en + zh-CN) noting that submissions are sent to HubSpot, with a link to /privacy-policy. - Tighten isHubspotSuccessBody to reject arrays so a malformed 200 response cannot be returned as a HubspotSubmissionResult. - Replace inline payload type in the component test with the real Parameters<typeof submitHubspotForm>[0] so the test stays in sync with the production signature. - Add tests for the prod-gating fail-safe and the array-response guard.