fix: do not update the .env.template file with the database name (#10073)

Fixes FRMW-2775
This commit is contained in:
Harminder Virk
2024-11-13 17:58:13 +05:30
committed by GitHub
parent f151fb32aa
commit d9d4e575f6
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
fix: do not update the .env.template file with the database name

View File

@@ -138,7 +138,7 @@ export async function dbCreate({
if (await dbExists(client, dbName)) {
logger.info(`Database "${dbName}" already exists`)
envEditor.set("DB_NAME", dbName)
envEditor.set("DB_NAME", dbName, { withEmptyTemplateValue: true })
await envEditor.save()
logger.info(`Updated .env file with "DB_NAME=${dbName}"`)