This is a demo for getting started with Hydrogen and Sentry. It's based on the Hydrogen's default template with TypeScript.
Requirements:
- Node.js version 16.14.0 or higher
Setup:
npm install
- Place your DSN in
entry.client.tsx
andentry.server.tsx
Sentry.init({
// TODO: replace with your Sentry DSN
dsn: 'SENTRY_DSN',
// ...
});
- Place your Sentry Organization Slug, Project Slug, and Auth Token in
.env
This is required to create Sentry releases and upload source maps. See docs for more information.
# Sentry Organization Slug (e.g. "my-org")
SENTRY_ORG=""
# Sentry Project Slug (e.g. "my-project")
SENTRY_PROJECT=""
# Sentry Auth Token, found in Settings > API Keys. Must have "project:releases" scope.
SENTRY_AUTH_TOKEN=""
npm run build
npm run dev