feat: load HubSpot script on staging - #8293
Conversation
The HubSpot tracking script is only injected when `Project.hubspot` is set (frontend/web/project/libs.js). Of the env configs, only project_prod.js defines it, so staging never loads the script and HubSpot has no visibility of the environment at all. This meant HubSpot chatflows targeting staging.flagsmith.com could never match, since the widget's loader was never on the page. demo.flagsmith.com and app.flagsmith.com both build with the prod config, which is why the chat appears there but not on staging. Points staging at the same portal (143451822) as prod so chatflow targeting rules covering staging.flagsmith.com resolve. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe staging project settings now include a Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This change enables the existing HubSpot loader on staging while preserving the E2E suppression behavior; no actionable merge-blocking risk remains beyond normal checks and review. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Docker builds report
|
✅ private-cloud · depot-ubuntu-latest-16 — run #19354 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
🗂️ Previous results✅ oss · depot-ubuntu-latest-arm-16 — run #19354 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
✅ oss · depot-ubuntu-latest-16 — run #19354 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-16)Details
|
Visual Regression19 screenshots compared. See report for details. |
Thanks for submitting a PR! Please check the boxes below:
docs/if required so people know about the feature.Changes
Adds the
hubspotkey tofrontend/env/project_staging.js, pointing at the same portal as prod (143451822).This is to enable the HubSpot chat button in staging for testing purposes.
🤖 Generated with Claude Code