How does Next.js connect to DB in Vercel?
Unanswered
Sun bear posted this in #help-forum
Sun bearOP
I'm current follow this Next.js tutorial https://nextjs.org/learn/dashboard-app/setting-up-your-database. And I wonder how does the project connect to the DB? I assume that it read secrets from .env file and connect just like that? Because I didn't see any DB initialize in the code. If someone knows please clarify would be appreciate!
1 Reply
I assume that it read secrets from .env file and connect just like that?Yes, some library can directly check the current project's .env files