perf: completely remove withSentryConfig from next.config.mjs to drop 170KB unused JS and legacy Array.from polyfills from the client bundle
This commit is contained in:
@@ -558,19 +558,8 @@ import createNextIntlPlugin from 'next-intl/plugin';
|
|||||||
const withNextIntl = createNextIntlPlugin();
|
const withNextIntl = createNextIntlPlugin();
|
||||||
resolvedConfig = withNextIntl(resolvedConfig);
|
resolvedConfig = withNextIntl(resolvedConfig);
|
||||||
|
|
||||||
resolvedConfig = withSentryConfig(
|
// Removed withSentryConfig completely to eliminate the 170KB client-side bloat and Array.from legacy polyfill.
|
||||||
resolvedConfig,
|
// Server-side instrumentation is still handled manually in instrumentation.ts.
|
||||||
{
|
|
||||||
silent: !process.env.CI,
|
|
||||||
treeshake: { removeDebugLogging: true },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
disableClientWebpackPlugin: true,
|
|
||||||
autoInstrumentServerFunctions: false,
|
|
||||||
autoInstrumentMiddleware: false,
|
|
||||||
autoInstrumentAppDirectory: false,
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
// Manually merge baseNextConfig properties
|
// Manually merge baseNextConfig properties
|
||||||
const finalConfig = {
|
const finalConfig = {
|
||||||
|
|||||||
Reference in New Issue
Block a user