Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: exposes types and updates example apps for beforeSend #154

Merged

Conversation

feugy
Copy link
Member

@feugy feugy commented Nov 8, 2024

🖖 What's in there?

As part of documenting route support, this PR:

  • exposes typescript types for BeforeSend and BeforeSendEvent
  • shows working example for each framework

🤺 How to test?

On preview deployments, with console open, you will see relevant logs before sending page views.

🔬Notes to reviewers

apps/astro/src/components/BaseHead.astro was unused, I've removed it, and I've moved Sveltekit layout from js to ts.
The way in Astro to pass beforeSend is by exposing a global function (we do the same in SpeedInsights, there's no built-in support for non-serializable props in Astro).

@feugy feugy requested a review from a team November 8, 2024 08:49
Copy link

vercel bot commented Nov 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
analytics-astro ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2024 9:05am
analytics-next15 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2024 9:05am
analytics-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2024 9:05am
analytics-nuxt ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2024 9:05am
analytics-remix ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2024 9:05am
analytics-sveltekit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2024 9:05am
analytics-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2024 9:05am

Copy link

socket-security bot commented Nov 8, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@astrojs/[email protected] Transitive: filesystem +11 6.69 MB fredkschott
npm/[email protected] Transitive: environment, eval, filesystem, network, shell +305 60.5 MB fredkschott

🚮 Removed packages: npm/[email protected]

View full report↗︎

@feugy feugy merged commit c09b649 into main Nov 12, 2024
13 checks passed
@feugy feugy deleted the damien/log-827-deploy-route-support-for-other-framework-docs branch November 12, 2024 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants