Next.js Discord

Discord Forum

website working on development but in production vercel

Unanswered
Briard posted this in #help-forum
Open in Discord
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

4 Replies