Skip to content

Commit

Permalink
fix: do not update the .env.template file with the database name
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Nov 13, 2024
1 parent 7a26e12 commit a8b41e7
Showing 1 changed file with 1 addition and 1 deletion.
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 a8b41e7

Please sign in to comment.