We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 574f40d commit 3e7b838Copy full SHA for 3e7b838
packages/kit/src/core/postbuild/analyse.js
@@ -67,14 +67,12 @@ async function analyse({ manifest_path, env }) {
67
function get_config(nodes) {
68
let current = {};
69
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
- }
+ if (!(node?.server?.config || node?.universal?.config)) continue;
+ current = {
+ ...current,
+ ...(node?.server?.config ?? {}),
+ ...(node?.universal?.config ?? {})
+ };
78
}
79
80
return Object.keys(current).length ? current : undefined;
0 commit comments