fix(create-medusa-app): --db-url keep asking db credentials (#11037)

* fix create-medusa-app db-url error

* removed empty lines

* changeset
This commit is contained in:
RONY GEDEON YEBADOKPO authored and GitHub committed 2025-01-29 15:30:18 +02:00
1 parent 2bd51ddc04
commit a16eaad6c9
2 files changed
+12 -6

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"create-medusa-app": patch
---
Fix issue where create-medusa-app repeatedly asked for database credentials even when --db-url was specified. The logic in MedusaProjectCreator->create()->initializeProject()->setupDatabase() always defines a dbName. Updated the getDbClientAndCredentials() method to check db-url first