Files
ComfyUI_frontend/apps
Glary-Bot 56e4e79ac5 fix(website): gate HubSpot defaults to prod, add disclosure, harden response parser
- 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.
2026-04-28 02:06:19 +00:00
..