File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1- let userConfig = undefined
1+ let userConfig = undefined ;
22try {
3- userConfig = await import ( './v0-user-next.config' )
3+ userConfig = await import ( './v0-user-next.config' ) ;
44} catch ( e ) {
55 // ignore error
66}
77
88/** @type {import('next').NextConfig } */
99const nextConfig = {
10+ output : 'export' , // enable static export
1011 eslint : {
1112 ignoreDuringBuilds : true ,
1213 } ,
@@ -21,14 +22,12 @@ const nextConfig = {
2122 parallelServerBuildTraces : true ,
2223 parallelServerCompiles : true ,
2324 } ,
24- }
25+ } ;
2526
26- mergeConfig ( nextConfig , userConfig )
27+ mergeConfig ( nextConfig , userConfig ) ;
2728
2829function mergeConfig ( nextConfig , userConfig ) {
29- if ( ! userConfig ) {
30- return
31- }
30+ if ( ! userConfig ) return ;
3231
3332 for ( const key in userConfig ) {
3433 if (
@@ -38,11 +37,11 @@ function mergeConfig(nextConfig, userConfig) {
3837 nextConfig [ key ] = {
3938 ...nextConfig [ key ] ,
4039 ...userConfig [ key ] ,
41- }
40+ } ;
4241 } else {
43- nextConfig [ key ] = userConfig [ key ]
42+ nextConfig [ key ] = userConfig [ key ] ;
4443 }
4544 }
4645}
4746
48- export default nextConfig
47+ export default nextConfig ;
You can’t perform that action at this time.
0 commit comments