: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
#!/bin/sh
set -e
# This script copies the following built files from posthog-js so that they can served on PostHog's CDN
cp node_modules/posthog-js/dist/array.js* dist/
cp node_modules/posthog-js/dist/array.full.js* dist/
cp node_modules/posthog-js/dist/array.full.es5.js* dist/
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/
# there are multiple external integrations that we use, so we need to copy them all
cp node_modules/posthog-js/dist/*integration.js* dist/ 2>/dev/null || true
# there are multiple recorder files that we use, so we need to copy them all
cp node_modules/posthog-js/dist/*recorder*.js* dist/ 2>/dev/null || true
cp node_modules/posthog-js/dist/product-tours.js* dist/
cp node_modules/posthog-js/dist/conversations.js* dist/