diff --git a/cli/workspace.ts b/cli/workspace.ts index fdbd1fa884..1a726bbcc7 100644 --- a/cli/workspace.ts +++ b/cli/workspace.ts @@ -166,8 +166,7 @@ export async function add( // first check whether workspaceId is actually a URL try { const url = new URL(workspaceId); - workspaceId = url.username; - url.username = ""; + workspaceId = workspaceName; remote = url.toString(); } catch { // not a url