PrismaP
Prisma11mo ago
5 replies
Quan

Environment variables in .env file

I have a .env file

DB_HOST="main-rds.some-alphanumericstring.us-west-2.rds.amazonaws.com"
DB_USER="admin"
DB_PASSWORD="PASSWORD-THAT-CONTAINS-:"
DB_NAME="DbName"
DATABASE_URL="mysql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:3306/${DB_NAME}"


And it seems like prisma is having trouble parsing this, it gives a Error parsing connection string: invalid port number in database URL., I was under the impression that strings should be parsed ok if they are wrapped in quotes, is this not true?
Was this page helpful?