fix: wire MigrateSetup repoUrl to githubRepoUrl for mirror flow
Made-with: Cursor
This commit is contained in:
@@ -46,11 +46,12 @@ export function MigrateSetup({ workspace, onClose, onBack }: SetupProps) {
|
|||||||
slug: name.toLowerCase().replace(/[^a-z0-9]+/g, "-"),
|
slug: name.toLowerCase().replace(/[^a-z0-9]+/g, "-"),
|
||||||
product: { name: name.trim() },
|
product: { name: name.trim() },
|
||||||
creationMode: "migration",
|
creationMode: "migration",
|
||||||
|
// Top-level fields the create route reads for the mirror flow
|
||||||
|
githubRepoUrl: repoUrl.trim() || undefined,
|
||||||
|
// Preserve extra metadata for future use
|
||||||
sourceData: {
|
sourceData: {
|
||||||
repoUrl: repoUrl.trim() || undefined,
|
|
||||||
liveUrl: liveUrl.trim() || undefined,
|
liveUrl: liveUrl.trim() || undefined,
|
||||||
hosting: hosting || undefined,
|
hosting: hosting || undefined,
|
||||||
pat: pat.trim() || undefined,
|
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user