CLI/Config: keep explicitly unset keys removed

This commit is contained in:
Vignesh Natarajan
2026-02-21 21:07:50 -08:00
parent daf036a4f6
commit 73b4330d4c
5 changed files with 132 additions and 3 deletions

View File

@@ -272,7 +272,7 @@ export async function runConfigUnset(opts: { path: string; runtime?: RuntimeEnv
runtime.exit(1);
return;
}
await writeConfigFile(next);
await writeConfigFile(next, { unsetPaths: [parsedPath] });
runtime.log(info(`Removed ${opts.path}. Restart the gateway to apply.`));
} catch (err) {
runtime.error(danger(String(err)));