fix(create-medusa-app): don't open browser to admin if v2 option is passed (#7253)

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
Shahed Nasser
2024-05-06 19:35:32 +03:00
committed by GitHub
parent aff1eac91c
commit e7a3528367
2 changed files with 11 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
"create-medusa-app": patch
---
fix(create-medusa-app): don't open browser to admin if v2 option is passed

View File

@@ -256,13 +256,17 @@ export default async ({
await waitOn({
resources: ["http://localhost:9000/health"],
}).then(async () =>
}).then(async () => {
if (v2) {
return
}
open(
inviteToken
? `http://localhost:7001/invite?token=${inviteToken}&first_run=true`
: "http://localhost:7001"
)
)
})
}
async function askForProjectName(directoryPath?: string): Promise<string> {