vercel / speed-insights

Vercel Speed Insights package
https://vercel.com/docs/speed-insights
Apache License 2.0
57 stars 9 forks source link

DSN not documented #71

Open thomkrupa opened 3 months ago

thomkrupa commented 3 months ago

Hey! I want to use Speed Insights with self-hosted project and wondering why the DSN option is not documented? Is it still supported? If yes, how do I get the DSN, is it the Project ID?

thomkrupa commented 3 months ago

https://vercel.com/docs/speed-insights/api This doesn't work anymore, there is no VERCEL_ANALYTICS_ID environment variable when I do vercel pull.

I managed to get the Speed Insights ID from network requests in the Vercel Dashboard, but that's not the most user-friendly way to get the ID. It works as a custom DSN and data is collected properly. But it feels a bit hacky.

tobiaslins commented 3 months ago

Hey @thomkrupa !

Sorry for the inconveniences. The DSN should be visible in the dashboard during the setup for self-hosted projects. Does your project have a domain on Vercel? I think we only show it when there is none

oosawy commented 2 weeks ago

@tobiaslins So how to create self-hosted projects?

tobiaslins commented 2 weeks ago

Hi @oosawy !

You should be able to achieve this by doing following steps:

Let me know if this works for you

image