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 NasserandOli Juhl authored and GitHub committed 2024-05-06 18:35:32 +02:00
1 parent aff1eac91c
commit e7a3528367
2 files changed
+11 -2

No files matched your search

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