Turbo v2 (#32)

Updated to Turbo v2, and updated dependencies.
This commit is contained in:
Giancarlo Buomprisco
2024-06-06 15:36:16 +07:00
committed by GitHub
parent aba9076805
commit c9f0ec5d89
22 changed files with 399 additions and 709 deletions

View File

@@ -1,35 +1,3 @@
# Sentry Monitoring / @kit/sentry
Please set the following environment variable:
```bash
NEXT_PUBLIC_MONITORING_PROVIDER=sentry
NEXT_PUBLIC_SENTRY_DSN=your_dsn
```
Create the following file at the root of your project:
```tsx title="sentry.client.config.ts"
export * from '@kit/sentry/config/client';
```
Create the following file at the root of your project:
```tsx title="sentry.server.config.ts"
export * from '@kit/sentry/config/server';
```
Create the following file at the root of your project:
```tsx title="sentry.edge.config.ts"
export * from '@kit/sentry/config/edge';
```
Finally, update the Next.js configuration in your `next.config.js` file:
```tsx title="next.config.mjs"
import { withSentryConfig } from "@sentry/nextjs";
// wrap your Next.js configuration with the Sentry configuration
withSentryConfig(nextConfig);
```
Please refer to the [documentation](https://makerkit.dev/docs/next-supabase-turbo/sentry).