diff --git a/packages/create-bison-app/template/prisma/_.env.ejs b/packages/create-bison-app/template/prisma/_.env.ejs index cc831e2d..51de60df 100644 --- a/packages/create-bison-app/template/prisma/_.env.ejs +++ b/packages/create-bison-app/template/prisma/_.env.ejs @@ -4,4 +4,4 @@ # Prisma supports the native connection string format for PostgreSQL, MySQL and SQLite. # See the documentation for all the connection string options: https://pris.ly/d/connection-strings -DATABASE_URL="postgresql://<%= db.dev.user %><%= db.dev.password %>@<%= db.dev.host %>:<%= db.dev.port %>/<%= db.dev.name %>?schema=public" +DATABASE_URL="postgresql://<%= db.dev.user %><% if (db.dev.password) { %>:<%= db.dev.password %><% } %>@<%= db.dev.host %>:<%= db.dev.port %>/<%= db.dev.name %>?schema=public"