We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09b21e0 commit 15a55b1Copy full SHA for 15a55b1
1 file changed
src/config.ts
@@ -59,7 +59,12 @@ function readConfigFile(dir: string): Partial<TunnelConfig> {
59
for (const fileName of [LEGACY_CONFIG_FILE, PRIMARY_CONFIG_FILE]) {
60
try {
61
const raw = readFileSync(resolve(dir, fileName), "utf-8");
62
- Object.assign(merged, normalizeConfig(JSON.parse(raw)));
+ const next = normalizeConfig(JSON.parse(raw));
63
+ for (const [key, value] of Object.entries(next)) {
64
+ if (value !== undefined) {
65
+ (merged as Record<string, unknown>)[key] = value;
66
+ }
67
68
} catch {
69
// Try next candidate.
70
}
0 commit comments