This commit adds a new 'languagePriority' key to the feature flags configuration. It determines whether to use user's preferred language or the application's default language. Adjustments to the language selection process according to new flag have been made in the 'createInstance' function in 'i18n.server.ts'. Additionally, updates have been made to 'README.md' and '.env' files to reflect these changes.
35 lines
847 B
Markdown
35 lines
847 B
Markdown
# 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);
|
|
``` |