Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions apps/changelog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@radix-ui/react-icons": "^1.3.2",
"@radix-ui/react-toolbar": "^1.1.0",
"@radix-ui/themes": "^3.1.3",
"@sentry/nextjs": "9.10.1",
"@sentry/nextjs": "9.27.0",
"@spotlightjs/spotlight": "^2.1.1",
"next": "15.2.3",
"next-auth": "^4.24.5",
Expand Down Expand Up @@ -68,4 +68,4 @@
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1"
}
}
}
26 changes: 4 additions & 22 deletions next.config.js → next.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const {redirects} = require('./redirects.js');
import {codecovNextJSWebpackPlugin} from '@codecov/nextjs-webpack-plugin';
import {withSentryConfig} from '@sentry/nextjs';

const {codecovNextJSWebpackPlugin} = require('@codecov/nextjs-webpack-plugin');
const {withSentryConfig} = require('@sentry/nextjs');
import {redirects} from './redirects';

const outputFileTracingExcludes = process.env.NEXT_PUBLIC_DEVELOPER_DOCS
? {
Expand Down Expand Up @@ -34,7 +34,7 @@ if (

/** @type {import('next').NextConfig} */
const nextConfig = {
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx'],
pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx', 'mdx'],
trailingSlash: true,
serverExternalPackages: ['rehype-preset-minify'],
outputFileTracingExcludes,
Expand All @@ -55,10 +55,6 @@ const nextConfig = {
DEVELOPER_DOCS_: process.env.NEXT_PUBLIC_DEVELOPER_DOCS,
},
redirects,
// https://github.com/vercel/next.js/discussions/48324#discussioncomment-10748690
cacheHandler: require.resolve(
'next/dist/server/lib/incremental-cache/file-system-cache.js'
),
sassOptions: {
silenceDeprecations: ['legacy-js-api'],
},
Expand All @@ -74,12 +70,6 @@ module.exports = withSentryConfig(nextConfig, {
// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,

// Transpiles SDK to be compatible with IE11 (increases bundle size)
transpileClientSDK: true,

// Hides source maps from generated client bundles
hideSourceMaps: true,

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

Expand All @@ -101,11 +91,3 @@ module.exports = withSentryConfig(nextConfig, {
thirdPartyOriginStackFrames: true,
},
});

process.on('warning', warning => {
if (warning.code === 'DEP0040') {
// Ignore punnycode deprecation warning, we don't control its usage
return;
}
console.warn(warning); // Log other warnings
});
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@radix-ui/react-tooltip": "^1.1.4",
"@radix-ui/themes": "^3.1.3",
"@sentry-internal/global-search": "^1.3.0",
"@sentry/nextjs": "9.11.0",
"@sentry/nextjs": "9.27.0",
"@types/mdx": "^2.0.9",
"algoliasearch": "^4.23.3",
"dompurify": "3.2.4",
Expand Down Expand Up @@ -137,4 +137,4 @@
"node": "20.11.0",
"yarn": "1.22.22"
}
}
}
Loading
Loading