Skip to content

Commit b4593d4

Browse files
committed
use output: "export"
1 parent 66724f4 commit b4593d4

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

next.config.mjs

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
let userConfig = undefined
1+
let userConfig = undefined;
22
try {
3-
userConfig = await import('./v0-user-next.config')
3+
userConfig = await import("./v0-user-next.config");
44
} catch (e) {
55
// ignore error
66
}
@@ -18,28 +18,26 @@ const nextConfig = {
1818
parallelServerBuildTraces: true,
1919
parallelServerCompiles: true,
2020
},
21-
}
21+
output: "export",
22+
};
2223

23-
mergeConfig(nextConfig, userConfig)
24+
mergeConfig(nextConfig, userConfig);
2425

2526
function mergeConfig(nextConfig, userConfig) {
2627
if (!userConfig) {
27-
return
28+
return;
2829
}
2930

3031
for (const key in userConfig) {
31-
if (
32-
typeof nextConfig[key] === 'object' &&
33-
!Array.isArray(nextConfig[key])
34-
) {
32+
if (typeof nextConfig[key] === "object" && !Array.isArray(nextConfig[key])) {
3533
nextConfig[key] = {
3634
...nextConfig[key],
3735
...userConfig[key],
38-
}
36+
};
3937
} else {
40-
nextConfig[key] = userConfig[key]
38+
nextConfig[key] = userConfig[key];
4139
}
4240
}
4341
}
4442

45-
export default nextConfig
43+
export default nextConfig;

0 commit comments

Comments
 (0)