@@ -12,6 +12,7 @@ A modern, headless e-commerce storefront built with Next.js 16, React 19, and th
1212- ** React 19** - Latest React with improved Server Components
1313- ** Tailwind CSS 4** - Utility-first styling
1414- ** TypeScript 5** - Full type safety
15+ - ** Sentry** - Error tracking and performance monitoring with source maps
1516- [ @spree/sdk ] ( https://github.com/spree/spree/tree/main/packages/sdk ) - Official Spree Commerce SDK
1617- [ @spree/next ] ( https://github.com/spree/spree/tree/main/packages/next ) - Server actions, caching, and cookie-based auth
1718
@@ -30,6 +31,7 @@ A modern, headless e-commerce storefront built with Next.js 16, React 19, and th
3031 - Saved payment methods
3132- ** Multi-Region Support** - Country and currency switching via URL segments
3233- ** Responsive Design** - Mobile-first Tailwind CSS styling
34+ - ** Error Tracking** - Sentry integration for both server-side and client-side error monitoring with source maps
3335
3436## Architecture
3537
@@ -75,6 +77,15 @@ SPREE_API_KEY=your_publishable_api_key_here
7577
7678> Note: These are server-side only variables (no ` NEXT_PUBLIC_ ` prefix needed).
7779
80+ #### Optional variables
81+
82+ | Variable | Description | Default |
83+ | ----------| -------------| ---------|
84+ | ` SENTRY_DSN ` | Sentry DSN for error tracking (e.g. ` https://key@o0.ingest.sentry.io/0 ` ) | _ (disabled)_ |
85+ | ` SENTRY_ORG ` | Sentry organization slug (for source map uploads) | _ (none)_ |
86+ | ` SENTRY_PROJECT ` | Sentry project slug (for source map uploads) | _ (none)_ |
87+ | ` SENTRY_AUTH_TOKEN ` | Sentry auth token (for source map uploads in CI) | _ (none)_ |
88+
7889### Development
7990
8091``` bash
@@ -217,7 +228,9 @@ The easiest way to deploy is using [Vercel](https://vercel.com/new):
217228
2182291 . Push your code to GitHub
2192302 . Import the repository in Vercel
220- 3 . Add environment variables (` SPREE_API_URL ` , ` SPREE_API_KEY ` )
231+ 3 . Add environment variables:
232+ - ` SPREE_API_URL ` and ` SPREE_API_KEY ` (required)
233+ - ` SENTRY_DSN ` , ` SENTRY_ORG ` , ` SENTRY_PROJECT ` , ` SENTRY_AUTH_TOKEN ` (optional — for error tracking with readable stack traces)
2212344 . Deploy
222235
223236## License
0 commit comments