Sentry
Supaplate comes with Sentry integration out of the box.
Supaplate is configured following the Sentry React Router Framework configuration guide
Prerequisites
Environment Variables
The Sentry integration is ready to go, all you have to do is to set the following environment variables:
SENTRY_ORG=""SENTRY_PROJECT=""SENTRY_AUTH_TOKEN=""SENTRY_DSN=""VITE_SENTRY_DSN="" # Same as SENTRY_DSN
Debugging Integration
To debug the Sentry integration, go to the /debug/sentry
page.
There is a button to trigger a test error.
When you click the button, that will throw an error and you should see it in Sentry.
Delete in production
The /debug/sentry
page should be deleted / hidden in production, it is for you to use it as a testing page.