Skip to content

Commit

Permalink
Utilisation de sentry pour l'instant plutôt que notre glitchtip
Browse files Browse the repository at this point in the history
  • Loading branch information
laem committed Jan 17, 2025
1 parent 7b98cb5 commit 3341150
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 25 deletions.
2 changes: 1 addition & 1 deletion app/sentry-example-page/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default function Page() {

<p>
Next, look for the error on the{" "}
<a href="https://pb.cartes.app/organizations/cartes/issues/?project=2">Issues Page</a>.
<a href="https://cartes-nh.sentry.io/issues/?project=4508661293514832">Issues Page</a>.
</p>
<p style={{ marginTop: "24px" }}>
For more information, see{" "}
Expand Down
1 change: 0 additions & 1 deletion lib/githubIssues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export async function downloadIssues() {
},
})

console.log(response)
const withMarkdown = response
.map((issue) => {
const { body } = issue
Expand Down
21 changes: 14 additions & 7 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ const nextConfig = {
],
},
/*
compilerOptions: {
baseUrl: '.',
},
*/
compilerOptions: {
baseUrl: '.',
},
*/
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors.
Expand Down Expand Up @@ -118,13 +118,13 @@ const withMDX = createMDX({ options: mdxOptions })

export default withSentryConfig(
withYak(withContentlayer(withMDX(nextConfig))),

{
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options

org: 'cartes',
project: 'cartesweb',
sentryUrl: 'https://pb.cartes.app/',
org: 'cartes-nh',
project: 'javascript-nextjs',

// Only print logs for uploading source maps in CI
silent: !process.env.CI,
Expand All @@ -146,5 +146,12 @@ export default withSentryConfig(

// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,

// Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
// See the following for more information:
// https://docs.sentry.io/product/crons/
// https://vercel.com/docs/cron-jobs
automaticVercelMonitors: true,
}
)

2 changes: 1 addition & 1 deletion public/github-issues.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// The config you add here will be used whenever a users loads a page in their browser.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/

import * as Sentry from '@sentry/nextjs'
import * as Sentry from "@sentry/nextjs";

Sentry.init({
dsn: 'https://[email protected]/2',
dsn: "https://06122d20c42fb7fbece2556cbc712f26@o4508661291679744.ingest.de.sentry.io/4508661293514832",

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
})
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
});
10 changes: 5 additions & 5 deletions sentry.edge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
// Note that this config is unrelated to the Vercel Edge Runtime and is also required when running locally.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/

import * as Sentry from '@sentry/nextjs'
import * as Sentry from "@sentry/nextjs";

Sentry.init({
dsn: 'https://[email protected]/2',
dsn: "https://06122d20c42fb7fbece2556cbc712f26@o4508661291679744.ingest.de.sentry.io/4508661293514832",

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
})
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
});
10 changes: 5 additions & 5 deletions sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// The config you add here will be used whenever the server handles a request.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/

import * as Sentry from '@sentry/nextjs'
import * as Sentry from "@sentry/nextjs";

Sentry.init({
dsn: 'https://[email protected]/2',
dsn: "https://06122d20c42fb7fbece2556cbc712f26@o4508661291679744.ingest.de.sentry.io/4508661293514832",

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
})
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
});

0 comments on commit 3341150

Please sign in to comment.