@@ -12,54 +12,57 @@ const withBundleAnalyzer = bundleAnalyzer({
12
12
} )
13
13
14
14
const config = withBundleAnalyzer (
15
- withPayload ( {
16
- eslint : {
17
- ignoreDuringBuilds : true ,
18
- } ,
19
- typescript : {
20
- ignoreBuildErrors : true ,
21
- } ,
22
- experimental : {
23
- fullySpecified : true ,
24
- serverActions : {
25
- bodySizeLimit : '5mb' ,
15
+ withPayload (
16
+ {
17
+ eslint : {
18
+ ignoreDuringBuilds : true ,
26
19
} ,
27
- } ,
28
- env : {
29
- PAYLOAD_CORE_DEV : 'true' ,
30
- ROOT_DIR : path . resolve ( dirname ) ,
31
- // @todo remove in 4.0 - will behave like this by default in 4.0
32
- PAYLOAD_DO_NOT_SANITIZE_LOCALIZED_PROPERTY : 'true' ,
33
- } ,
34
- async redirects ( ) {
35
- return [
36
- {
37
- destination : '/admin' ,
38
- permanent : false ,
39
- source : '/' ,
20
+ typescript : {
21
+ ignoreBuildErrors : true ,
22
+ } ,
23
+ experimental : {
24
+ fullySpecified : true ,
25
+ serverActions : {
26
+ bodySizeLimit : '5mb' ,
40
27
} ,
41
- ]
42
- } ,
43
- images : {
44
- domains : [ 'localhost' ] ,
45
- } ,
46
- webpack : ( webpackConfig ) => {
47
- webpackConfig . resolve . extensionAlias = {
48
- '.cjs' : [ '.cts' , '.cjs' ] ,
49
- '.js' : [ '.ts' , '.tsx' , '.js' , '.jsx' ] ,
50
- '.mjs' : [ '.mts' , '.mjs' ] ,
51
- }
28
+ } ,
29
+ env : {
30
+ PAYLOAD_CORE_DEV : 'true' ,
31
+ ROOT_DIR : path . resolve ( dirname ) ,
32
+ // @todo remove in 4.0 - will behave like this by default in 4.0
33
+ PAYLOAD_DO_NOT_SANITIZE_LOCALIZED_PROPERTY : 'true' ,
34
+ } ,
35
+ async redirects ( ) {
36
+ return [
37
+ {
38
+ destination : '/admin' ,
39
+ permanent : false ,
40
+ source : '/' ,
41
+ } ,
42
+ ]
43
+ } ,
44
+ images : {
45
+ domains : [ 'localhost' ] ,
46
+ } ,
47
+ webpack : ( webpackConfig ) => {
48
+ webpackConfig . resolve . extensionAlias = {
49
+ '.cjs' : [ '.cts' , '.cjs' ] ,
50
+ '.js' : [ '.ts' , '.tsx' , '.js' , '.jsx' ] ,
51
+ '.mjs' : [ '.mts' , '.mjs' ] ,
52
+ }
52
53
53
- // Ignore sentry warnings when not wrapped with withSentryConfig
54
- webpackConfig . ignoreWarnings = [
55
- ...( webpackConfig . ignoreWarnings ?? [ ] ) ,
56
- { file : / e s m \/ p l a t f o r m \/ n o d e \/ i n s t r u m e n t a t i o n .j s / } ,
57
- { module : / e s m \/ p l a t f o r m \/ n o d e \/ i n s t r u m e n t a t i o n .j s / } ,
58
- ]
54
+ // Ignore sentry warnings when not wrapped with withSentryConfig
55
+ webpackConfig . ignoreWarnings = [
56
+ ...( webpackConfig . ignoreWarnings ?? [ ] ) ,
57
+ { file : / e s m \/ p l a t f o r m \/ n o d e \/ i n s t r u m e n t a t i o n .j s / } ,
58
+ { module : / e s m \/ p l a t f o r m \/ n o d e \/ i n s t r u m e n t a t i o n .j s / } ,
59
+ ]
59
60
60
- return webpackConfig
61
+ return webpackConfig
62
+ } ,
61
63
} ,
62
- } ) ,
64
+ { devBundleServerPackages : false } ,
65
+ ) ,
63
66
)
64
67
65
68
export default process . env . NEXT_PUBLIC_SENTRY_DSN
0 commit comments