Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

getsentry/sentry-hydrogen-demo

Repository files navigation

Hydrogen with Sentry

This is a demo for getting started with Hydrogen and Sentry. It's based on the Hydrogen's default template with TypeScript.

Sentry Remix SDK Docs

Hydrogen Docs

Remix Docs

Getting started

Requirements:

  • Node.js version 16.14.0 or higher

Setup:

  1. npm install
  2. Place your DSN in entry.client.tsx and entry.server.tsx
Sentry.init({
  // TODO: replace with your Sentry DSN
  dsn: 'SENTRY_DSN',
  // ...
});
  1. 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=""

Building for production

npm run build

Local development

npm run dev

Releases

No releases published

Sponsor this project

Packages

No packages published