:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(web-vitals): ship web-vitals-with-attribution.js bundle to frontend/dist/ (#58127)
Alexandr Kozhevnikov0bb22091b9f6
diff --git a/frontend/bin/copy-posthog-js b/frontend/bin/copy-posthog-jsindex be19b9c4fe09..38641ff96b96 100755--- a/frontend/bin/copy-posthog-js+++ b/frontend/bin/copy-posthog-js@@ -11,6 +11,7 @@ cp node_modules/posthog-js/dist/surveys.js* dist/cp node_modules/posthog-js/dist/logs.js* dist/cp node_modules/posthog-js/dist/exception-autocapture.js* dist/cp node_modules/posthog-js/dist/web-vitals.js* dist/+cp node_modules/posthog-js/dist/web-vitals-with-attribution.js* dist/cp node_modules/posthog-js/dist/tracing-headers.js* dist/cp node_modules/posthog-js/dist/dead-clicks-autocapture.js* dist/cp node_modules/posthog-js/dist/customizations.full.js* dist/diff --git a/frontend/plugins/vite-posthog-js-plugin.ts b/frontend/plugins/vite-posthog-js-plugin.tsindex e33cb5b559d2..2f3dc3c30bb3 100644--- a/frontend/plugins/vite-posthog-js-plugin.ts+++ b/frontend/plugins/vite-posthog-js-plugin.ts@@ -46,6 +46,8 @@ function copyPostHogJsFiles(): void {'exception-autocapture.js.map','web-vitals.js','web-vitals.js.map',+ 'web-vitals-with-attribution.js',+ 'web-vitals-with-attribution.js.map','tracing-headers.js','tracing-headers.js.map','dead-clicks-autocapture.js',