diff --git a/.changeset/soft-elephants-switch.md b/.changeset/soft-elephants-switch.md new file mode 100644 index 0000000000..151a2c4810 --- /dev/null +++ b/.changeset/soft-elephants-switch.md @@ -0,0 +1,5 @@ +--- +"create-medusa-app": patch +--- + +fix(create-medusa-app): don't open browser to admin if v2 option is passed diff --git a/packages/cli/create-medusa-app/src/commands/create.ts b/packages/cli/create-medusa-app/src/commands/create.ts index 0660246a73..a3981ea8d3 100644 --- a/packages/cli/create-medusa-app/src/commands/create.ts +++ b/packages/cli/create-medusa-app/src/commands/create.ts @@ -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 {