Skip to content

Commit

Permalink
fix: do not update the .env.template file with the database name (#10073
Browse files Browse the repository at this point in the history
)

Fixes FRMW-2775
  • Loading branch information
thetutlage authored Nov 13, 2024
1 parent f151fb3 commit d9d4e57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/gentle-dancers-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---

fix: do not update the .env.template file with the database name
2 changes: 1 addition & 1 deletion packages/medusa/src/commands/db/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}"`)

Expand Down

0 comments on commit d9d4e57

Please sign in to comment.