hazamashoken
Explore posts from serversDTDrizzle Team
•Created by hazamashoken on 4/5/2024 in #help
POSTGRES_URI is required during build time when using with next-auth/beta ?
So I have this simple google auth build with next-auth + drizzle orm pg adapter.
for testing purposes, currently there's only /api/auth/[...nextauth]/route.ts and auth.js for simple authentication
This cause
ERR_INVALID_URL
that came from DrizzleAdapter
to be thrown during npm run build
Even though it can be change again during run-time, it just very annoying to have to inject this variable in during build process.
Anyone have any solution or workaround that does not require setting POSTGRES_URI
during build-time and changing it again ?
thank you.
2 replies