Skip to content

Commit f3d60dc

Browse files
authored
deps(changelog): Bump Next.js to canary and Sentry SDK to latest (#10876)
1 parent 7451dcd commit f3d60dc

12 files changed

+2045
-1955
lines changed

apps/changelog/.env.development

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# rename this file to .env and supply the values listed below
2+
# also make sure they are available to the build tool (e.g. Vercel/Netlify)
3+
# warning: variables prefixed with NEXT_PUBLIC_ will be made available to client-side code
4+
# be careful not to expose sensitive data
5+
6+
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/changelog
7+
NEXTAUTH_URL=http://localhost:3000
8+
NEXTAUTH_SECRET=secret

apps/changelog/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ next-env.d.ts
3838

3939
# dotenv environment variables file
4040
.env
41-
.env.development
41+
!.env.development

apps/changelog/next.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default withSentryConfig(nextConfig, {
3232
hideSourceMaps: true,
3333

3434
// Automatically tree-shake Sentry logger statements to reduce bundle size
35-
disableLogger: true,
35+
disableLogger: process.env.NODE_ENV === 'production',
3636

3737
reactComponentAnnotation: {
3838
enabled: true,

apps/changelog/package.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@
2121
"@radix-ui/react-icons": "^1.3.0",
2222
"@radix-ui/react-toolbar": "^1.0.4",
2323
"@radix-ui/themes": "^2.0.3",
24-
"@sentry/nextjs": "^8.8.0",
25-
"@spotlightjs/spotlight": "^2.1.1",
26-
"next": "^14.2.5",
24+
"@sentry/nextjs": "8.20.0",
25+
"next": "^15.0.0-canary.83",
2726
"next-auth": "^4.24.5",
2827
"next-mdx-remote": "^4.4.1",
2928
"nextjs-toploader": "^1.6.6",
3029
"prism-sentry": "^1.0.2",
31-
"react": "18.3.1",
32-
"react-dom": "18.3.1",
30+
"react": "beta",
31+
"react-dom": "beta",
3332
"react-select": "^5.7.3",
3433
"react-textarea-autosize": "^8.5.3",
3534
"rehype-prism-plus": "^1.6.3",
@@ -47,7 +46,7 @@
4746
"@types/rss": "^0.0.32",
4847
"autoprefixer": "^10.4.17",
4948
"eslint": "^8",
50-
"eslint-config-next": "^14.2.5",
49+
"eslint-config-next": "^15.0.0-canary.83",
5150
"postcss": "^8.4.33",
5251
"prisma": "^5.8.1",
5352
"tailwindcss": "^3.4.1",

apps/changelog/sentry.client.config.ts

+3-8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import * as SentryCore from '@sentry/core';
66
import * as Sentry from '@sentry/nextjs';
7-
import * as Spotlight from '@spotlightjs/spotlight';
87

98
Sentry.init({
109
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
@@ -22,14 +21,10 @@ Sentry.init({
2221
integrations: [
2322
Sentry.replayIntegration(),
2423
SentryCore.thirdPartyErrorFilterIntegration({
25-
filterKeys: ['sentry-docs'],
24+
filterKeys: ['sentry-changelog'],
2625
behaviour: 'drop-error-if-contains-third-party-frames',
2726
}),
2827
],
29-
});
3028

31-
if (process.env.NODE_ENV === 'development') {
32-
Spotlight.init({
33-
showClearEventsButton: true,
34-
});
35-
}
29+
debug: process.env.NODE_ENV !== 'production',
30+
});

apps/changelog/sentry.edge.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import * as Sentry from '@sentry/nextjs';
33
Sentry.init({
44
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
55
tracesSampleRate: 1,
6-
debug: false,
76
environment: process.env.NODE_ENV,
7+
debug: process.env.NODE_ENV !== 'production',
88
});

apps/changelog/sentry.server.config.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import * as Sentry from '@sentry/nextjs';
33
Sentry.init({
44
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
55
tracesSampleRate: 1,
6-
debug: false,
76
environment: process.env.NODE_ENV,
8-
spotlight: process.env.NODE_ENV === 'development',
97
integrations: [Sentry.prismaIntegration()],
8+
debug: process.env.NODE_ENV !== 'production',
109
});

apps/changelog/src/client/components/navbar.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ export function Navbar() {
8686
as={type}
8787
variant={variant}
8888
target={target}
89-
href={to || ''}
89+
// @ts-ignore
90+
href={to || null}
9091
className="w-full !justify-start"
9192
onClick={(e: React.MouseEvent<HTMLAnchorElement>) => {
9293
e.stopPropagation();

apps/changelog/src/instrumentation.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import * as Sentry from '@sentry/nextjs';
2+
13
export async function register() {
24
if (process.env.NEXT_RUNTIME === 'nodejs') {
35
await import('../sentry.server.config');
@@ -7,3 +9,5 @@ export async function register() {
79
await import('../sentry.edge.config');
810
}
911
}
12+
13+
export const onRequestError = Sentry.experimental_captureRequestError;

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"@radix-ui/react-toolbar": "^1.0.4",
5858
"@radix-ui/themes": "^2.0.3",
5959
"@sentry-internal/global-search": "^1.0.0",
60-
"@sentry/nextjs": "^8.8.0",
60+
"@sentry/nextjs": "8.20.0",
6161
"@types/mdx": "^2.0.9",
6262
"algoliasearch": "^4.23.3",
6363
"esbuild": "^0.19.8",
@@ -99,6 +99,7 @@
9999
"sass": "^1.69.5",
100100
"search-insights": "^2.2.3",
101101
"server-only": "^0.0.1",
102+
"sharp": "^0.33.4",
102103
"tailwindcss-scoped-preflight": "^3.0.4",
103104
"textarea-markdown-editor": "^1.0.4"
104105
},

sentry.client.config.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// The config you add here will be used whenever a users loads a page in their browser.
33
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
44

5-
import * as SentryCore from '@sentry/core';
65
import * as Sentry from '@sentry/nextjs';
76
import * as Spotlight from '@spotlightjs/spotlight';
87

@@ -28,7 +27,7 @@ Sentry.init({
2827
maskAllText: false,
2928
blockAllMedia: false,
3029
}),
31-
SentryCore.thirdPartyErrorFilterIntegration({
30+
Sentry.thirdPartyErrorFilterIntegration({
3231
filterKeys: ['sentry-docs'],
3332
behaviour: 'apply-tag-if-contains-third-party-frames',
3433
}),

0 commit comments

Comments
 (0)