Alan
08/13/2021, 2:57 AMDATABASE_URL in a file? (instead of .env)?Ryan
08/13/2021, 7:34 AMAlan
08/13/2021, 4:45 PMprovider?
Thanks!Ryan
08/13/2021, 6:01 PMAlan
08/15/2021, 1:36 AMAlan
08/15/2021, 1:38 AMnpx prisma migrate deploy it will take by default the URL in en .env not the one in the code.
const prisma = new PrismaClient({
datasources: {
db: {
url: config.URL_DB_LOG,
},
},
})Alan
08/15/2021, 1:39 AMRyan
08/16/2021, 5:27 AMmigrate you would always need to have an .env file.
Could you explain your use case so that I can suggest something based on what you’re trying to achieve.Alan
08/16/2021, 5:39 AMRyan
08/16/2021, 7:48 AM.env file or injecting environment variables before Prisma’s commands. We have a request for this here and you can check the workarounds from this comment and the ones below.Alan
08/16/2021, 5:03 PM