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

DSN not documented #71

Open
thomkrupa opened this issue Jun 8, 2024 · 4 comments
Open

DSN not documented #71

thomkrupa opened this issue Jun 8, 2024 · 4 comments

Comments

@thomkrupa
Copy link

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
Copy link
Author

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
Copy link
Collaborator

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
Copy link

oosawy commented Sep 14, 2024

@tobiaslins So how to create self-hosted projects?

@tobiaslins
Copy link
Collaborator

Hi @oosawy !

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

  • Create a new project on Vercel (use any start repo or CLI)
  • Navigate to the project settings -> domains
  • Remove the assigned domain, so you don't have any domains left
  • Go to speed insights, and in the onboarding you should now be able to see the component with DSN which should work with self-hosted projects.

Let me know if this works for you

image

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

No branches or pull requests

3 participants