website working on development but in production vercel
Unanswered
Briard posted this in #help-forum
BriardOP
I’ve created a simple open-source dashboard, which you can find here https://next-trpc-drizzle-dashboard.vercel.app.
However, as you might notice from the screenshot, API requests are not functioning correctly in the production environment.
My current environment variables are set up as follows:
DATABASE_URL: Remote database (working fine)
VERCEL_URL: Production URL
BETTER_AUTH_SECRET
RESEND_API_KEY
BETTER_AUTH_EMAIL
You can check out the project on GitHub https://github.com/codecret/next-trpc-drizzle-dashboard.git
However, as you might notice from the screenshot, API requests are not functioning correctly in the production environment.
My current environment variables are set up as follows:
DATABASE_URL: Remote database (working fine)
VERCEL_URL: Production URL
BETTER_AUTH_SECRET
RESEND_API_KEY
BETTER_AUTH_EMAIL
You can check out the project on GitHub https://github.com/codecret/next-trpc-drizzle-dashboard.git
4 Replies
@Briard I’ve created a simple open-source dashboard, which you can find here https://next-trpc-drizzle-dashboard.vercel.app.
However, as you might notice from the screenshot, API requests are not functioning correctly in the production environment.
My current environment variables are set up as follows:
DATABASE_URL: Remote database (working fine)
VERCEL_URL: Production URL
BETTER_AUTH_SECRET
RESEND_API_KEY
BETTER_AUTH_EMAIL
You can check out the project on GitHub https://github.com/codecret/next-trpc-drizzle-dashboard.git
did you added your .env variables to your hosting provider?
@B33fb0n3 did you added your .env variables to your hosting provider?
BriardOP
yes i did
to vercel
environmental variables