Skip to content

Commit 3e7b838

Browse files
fix: dumb
1 parent 574f40d commit 3e7b838

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

packages/kit/src/core/postbuild/analyse.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,12 @@ async function analyse({ manifest_path, env }) {
6767
function get_config(nodes) {
6868
let current = {};
6969
for (const node of nodes) {
70-
const config = node?.universal?.config ?? node?.server?.config;
71-
if (config) {
72-
current = {
73-
...current,
74-
...(node?.server?.config ?? {}),
75-
...(node?.universal?.config ?? {})
76-
};
77-
}
70+
if (!(node?.server?.config || node?.universal?.config)) continue;
71+
current = {
72+
...current,
73+
...(node?.server?.config ?? {}),
74+
...(node?.universal?.config ?? {})
75+
};
7876
}
7977

8078
return Object.keys(current).length ? current : undefined;

0 commit comments

Comments
 (0)