ixartz / SaaS-Boilerplate

🚀🎉📚 SaaS Boilerplate built with Next.js + Tailwind CSS + Shadcn UI + TypeScript. ⚡️ Full-stack React application with Auth, Multi-tenancy, Roles & Permissions, i18n, Landing Page, DB, Logging, Testing
https://react-saas.com/
MIT License
4.08k stars 571 forks source link

Clerk Error in production #47

Closed mmaksi closed 2 weeks ago

mmaksi commented 2 weeks ago

My code works perfectly fine in development but when deployed to production, it gives this error whenever I try to login: Clerk: Failed to load Clerk

I provided the production NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY and CLERK_SECRET_KEY.

But I still didn't provide a database, Stripe API key and other environment variables.

ixartz commented 2 weeks ago

@mmaksi thank you for opening the issue. It should work out of the box, you shouldn't need to make any changes for supporting Clerk, everything is configured for you. You just make sure the environment variables are correct.

Are you sure the environment variables are loaded in production?

ixartz commented 2 weeks ago

No response, I'm closing it