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:
5
.changeset/soft-elephants-switch.md
Normal file
5
.changeset/soft-elephants-switch.md
Normal 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({
|
||||
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> {
|
||||
|
||||
Reference in New Issue
Block a user