Skip to content

Commit

Permalink
feat: sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd committed Nov 8, 2023
1 parent 97be6e9 commit c69253f
Show file tree
Hide file tree
Showing 8 changed files with 518 additions and 79 deletions.
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,
transpileClientSDK: true,
tunnelRoute: '/monitoring',
hideSourceMaps: false,
disableLogger: true,
}
);
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

0 comments on commit c69253f

Please sign in to comment.