fix: do not update the .env.template file with the database name (#10073)
Fixes FRMW-2775
This commit is contained in:
5
.changeset/gentle-dancers-count.md
Normal file
5
.changeset/gentle-dancers-count.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/medusa": patch
|
||||
---
|
||||
|
||||
fix: do not update the .env.template file with the database name
|
||||
@@ -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}"`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user