Skip to content

Commit d1c9d28

Browse files
authored
Merge pull request #18882 from mozilla/update_nextconfig
fix(payments-next): fix class names being minified
2 parents 91c0ef3 + 5bee1bb commit d1c9d28

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

apps/payments/next/next.config.js

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ const nextConfig = {
3434
'@googleapis/androidpublisher',
3535
'@googlemaps/google-maps-services-js',
3636
'@grpc',
37-
"@nestjs/apollo",
38-
"@nestjs/common",
39-
"@nestjs/config",
40-
"@nestjs/core",
41-
"@nestjs/graphql",
42-
"@nestjs/mapped-types",
43-
"@nestjs/passport",
44-
"@nestjs/platform-express",
45-
"@nestjs/schedule",
37+
'@nestjs/apollo',
38+
'@nestjs/common',
39+
'@nestjs/config',
40+
'@nestjs/core',
41+
'@nestjs/graphql',
42+
'@nestjs/mapped-types',
43+
'@nestjs/passport',
44+
'@nestjs/platform-express',
45+
'@nestjs/schedule',
4646
'@opentelemetry',
4747
'@prisma/instrumentation',
4848
'@sentry',
@@ -71,6 +71,7 @@ const nextConfig = {
7171
'whatwg-url',
7272
'winston',
7373
],
74+
serverMinification: false, // https://github.com/vercel/next.js/issues/59594
7475
},
7576
images: {
7677
remotePatterns: [
@@ -97,8 +98,8 @@ const sentryOptions = {
9798
// For all available options, see:
9899
// https://github.com/getsentry/sentry-webpack-plugin#options
99100

100-
org: "mozilla",
101-
project: "fxa-payments-next",
101+
org: 'mozilla',
102+
project: 'fxa-payments-next',
102103

103104
// Enable source maps
104105
authToken: process.env.SENTRY_AUTH_TOKEN,
@@ -121,14 +122,14 @@ const sentryOptions = {
121122
// This can increase your server load as well as your hosting bill.
122123
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
123124
// side errors will fail.
124-
tunnelRoute: "/monitoring",
125+
tunnelRoute: '/monitoring',
125126

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

129130
// Automatically tree-shake Sentry logger statements to reduce bundle size
130131
disableLogger: true,
131-
}
132+
};
132133

133134
// Bundle Analyzer
134135
const withBundleAnalyzer = require('@next/bundle-analyzer')({

0 commit comments

Comments
 (0)