File tree Expand file tree Collapse file tree 3 files changed +49
-12
lines changed Expand file tree Collapse file tree 3 files changed +49
-12
lines changed Original file line number Diff line number Diff line change 1
- // This file sets a custom webpack configuration to use your Next.js app
2
- // with Sentry.
3
- // https://nextjs.org/docs/api-reference/next.config.js/introduction
4
- // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
5
- import { withSentryConfig } from '@sentry/nextjs'
6
-
7
1
/** @type {import('next').NextConfig } */
8
2
const nextConfig = {
9
3
// webpack: (config, { isServer, webpack }) => {
@@ -38,9 +32,3 @@ const nextConfig = {
38
32
}
39
33
40
34
module . exports = nextConfig
41
-
42
- module . exports = withSentryConfig (
43
- module . exports ,
44
- { silent : true } ,
45
- { hideSourcemaps : true }
46
- )
Original file line number Diff line number Diff line change
1
+ // This file sets a custom webpack configuration to use your Next.js app
2
+ // with Sentry.
3
+ // https://nextjs.org/docs/api-reference/next.config.js/introduction
4
+ // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
5
+ import { withSentryConfig } from '@sentry/nextjs'
6
+
7
+ /** @type {import('next').NextConfig } */
8
+ const nextConfig = {
9
+ // webpack: (config, { isServer, webpack }) => {
10
+ // if (!isServer) {
11
+ // // Ensures no server modules are included on the client.
12
+ // config.plugins.push(new webpack.IgnorePlugin(/lib\/server/));
13
+ // }
14
+
15
+ // return config;
16
+ // }, reactStrictMode: true,
17
+ swcMinify : true ,
18
+ compiler : {
19
+ relay : {
20
+ src : './' ,
21
+ language : 'typescript' ,
22
+ artifactDirectory : '__generated__' ,
23
+ } ,
24
+ } ,
25
+ experimental : { appDir : true } ,
26
+ async rewrites ( ) {
27
+ return [
28
+ {
29
+ source : '/@:handle([a-zA-Z0-9-_]+)/:id*' ,
30
+ destination : '/users/:handle/:id*' ,
31
+ } ,
32
+ {
33
+ source : '/story/:id([a-zA-Z0-9=+-/]+)___:suffix*' ,
34
+ destination : '/story/:id' ,
35
+ } ,
36
+ ]
37
+ } ,
38
+ }
39
+
40
+ module . exports = nextConfig
41
+
42
+ module . exports = withSentryConfig (
43
+ module . exports ,
44
+ { silent : true } ,
45
+ { hideSourcemaps : true }
46
+ )
Original file line number Diff line number Diff line change 101
101
},
102
102
"resolutions" : {
103
103
"webpack" : " ^5"
104
+ },
105
+ "engines" : {
106
+ "node" : " 17.5.0"
104
107
}
105
108
}
You can’t perform that action at this time.
0 commit comments