Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: sentry #6099

Merged
merged 2 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ cache

# TypeScript
tsconfig.tsbuildinfo

# Sentry Config File
.sentryclirc
17 changes: 16 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';

import { withSentryConfig } from '@sentry/nextjs';
import withNextIntl from 'next-intl/plugin';

import { BASE_PATH, ENABLE_STATIC_EXPORT } from './next.constants.mjs';
Expand Down Expand Up @@ -67,4 +68,18 @@ const nextConfig = {
},
};

export default withNextIntl()(nextConfig);
// Next.js Config with i18n Configuration
const withIntlConfig = withNextIntl()(nextConfig);

// Next.js Config with Sentry configuration
export default withSentryConfig(
withIntlConfig,
{ silent: true, org: 'nodejs-org', project: 'nodejs-org' },
{
widenClientFileUpload: true,
ovflowd marked this conversation as resolved.
Show resolved Hide resolved
transpileClientSDK: true,
ovflowd marked this conversation as resolved.
Show resolved Hide resolved
tunnelRoute: '/monitoring',
ovflowd marked this conversation as resolved.
Show resolved Hide resolved
hideSourceMaps: false,
ovflowd marked this conversation as resolved.
Show resolved Hide resolved
disableLogger: true,
}
);
ovflowd marked this conversation as resolved.
Show resolved Hide resolved
6 changes: 6 additions & 0 deletions next.constants.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,9 @@ export const DEFAULT_VIEWPORT = {
width: 'device-width',
initialScale: 1,
};

/**
* This is the Sentry DSN for the Node.js Website Project
*/
export const SENTRY_DSN =
'https://02884d0745aecaadf5f780278fe5fe70@o4506191161786368.ingest.sentry.io/4506191307735040';
Loading
Loading