Hi everyone,
I am experiencing an issue where users are unable to register on my production website .
When a user tries to sign up using their email and password, the registration fails on the client side with the error: Failed to create account.
what i have tried checked :
1-Added BETTER_AUTH_URL: Confirmed that BETTER_AUTH_URL is set to my website on Vercel and redeployed.
2-Database Connectivity: The Neon Postgres connection string is configured and accessible, but I suspect that the database might be missing the required tables (user, session, account, etc.) because I haven’t run any schema push or migrations yet.
Questions:
Is there a specific way I should run database migrations or table generation when using a direct pg pool with Better Auth on Neon?
Does npx better-auth migrate work directly with the Neon serverless driver or do I need Drizzle-Kit / Prisma to create the tables?
What is the best way to debug the exact server-side error logs on Vercel to see why the API is failing?
Any help or guidance would be greatly appreciated! Thank you!ation, and steps that reproduce this issue →