fix(gateway): land #28428 from @l0cka

Landed from contributor PR #28428 by @l0cka.

Co-authored-by: Daniel Alkurdi <danielalkurdi@gmail.com>
This commit is contained in:
Peter Steinberger
2026-03-07 22:49:50 +00:00
parent e83094e63f
commit 265367d99b
26 changed files with 289 additions and 165 deletions

View File

@@ -233,11 +233,8 @@ describe("finalizeOnboardingWizard", () => {
});
expect(resolveGatewayInstallToken).toHaveBeenCalledTimes(1);
expect(buildGatewayInstallPlan).toHaveBeenCalledWith(
expect.objectContaining({
token: undefined,
}),
);
expect(buildGatewayInstallPlan).toHaveBeenCalledTimes(1);
expect("token" in buildGatewayInstallPlan.mock.calls[0][0]).toBe(false);
expect(gatewayServiceInstall).toHaveBeenCalledTimes(1);
});
});

View File

@@ -184,7 +184,6 @@ export async function finalizeOnboardingWizard(
{
env: process.env,
port: settings.port,
token: tokenResolution.token,
runtime: daemonRuntime,
warn: (message, title) => prompter.note(message, title),
config: nextConfig,