I want to connect to an atlas database and I created a Secret for the connection string.
Do I need to change anything in my Prisma schema file to use this variable in the repl? Prior threads I researched about this has not made this clear. Gratias tibi ago!
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "mongodb"
url = env("DATABASE_URL")
}
Did you make sure you clicked “save” on the secret and that the name is the same? Try running echo $DATABASE_URL in the shell and see if it returns your secret.