K
Kinde12mo ago
IkiTg07

Help in Vercel Deployment

I don't know if the error was generated by Kinde but it's right after and before the log error on vercel deployments. I updated Kinde to the latest version maybe 3 days ago too.
No description
13 Replies
Oli - Kinde
Oli - Kinde12mo ago
Hi @IkiTg07, I assume you are using the Kinde NextJS App Router? Are you able to confirm you are using the latest NextJS SDK v2.0.10? If my assumption is right, have a read through the following guide and let me know if you still come across issues: https://kinde.com/docs/developer-tools/nextjs-sdk/#working-with-preview-urls
Kinde Docs
NextJS App Router SDK v2 - Developer tools - Help center
Our developer tools provide everything you need to get started with Kinde.
IkiTg07
IkiTg07OP12mo ago
I added the env in my nextjs config but still having the same error
IkiTg07
IkiTg07OP12mo ago
Here's my vercel's config for the project
No description
Oli - Kinde
Oli - Kinde12mo ago
Hey @IkiTg07, I have passed this issue onto my NextJS expert teammate. In the meantime this Vercel x Kinde NextJS walkthrough may help: https://youtu.be/ZNuE7CkB6ck?feature=shared
Kinde
YouTube
How to deploy a Kinde Next.js app with Vercel
Software engineer Peter takes you through how to deploy a Kinde app using Vercel, and covers the common pitfalls involved. 00:00 - App demo 0:46 - Creating a project on Vercel 1:19 - Initialising Github repo 2:49 - Setting up environment variables on Vercel 4:00 - Deploying and visiting the app on the Vercel Domain 5:13 - Updating environment ...
Oli - Kinde
Oli - Kinde12mo ago
Hey @IkiTg07, My team has confirmed that your issue would be resolved when you update the latest version of the NextJS SDK v2.0.10 Can you please confirm what version of the Kinde NextJS SDK you are using?
IkiTg07
IkiTg07OP12mo ago
I am using v2.0.10 but it doesn't seem to fix my problem
No description
IkiTg07
IkiTg07OP12mo ago
My project was already on vercel and it was working fine until my last commit. I've everything set up like in the video Is your SDK compatible with NextJS verison 14 ? Because if my memory isn't failing me I upgraded to Next 14 and was still using NextJS App Router v1. I updated to v2 very recently
Oli - Kinde
Oli - Kinde12mo ago
NextJS v2.0.10 works with Next version 13+ so it does work with 14. I will pass this onto my NextJS expert team mate who is investigating your issue.
IkiTg07
IkiTg07OP12mo ago
Alright thanks
Oli - Kinde
Oli - Kinde12mo ago
Hey @IkiTg07, We have 2 suggestions we think will fix your issue: 1. Delete your node modules -> install 2.0.10 -> push to master on GitHub > redeploy on Vercel 2. If it’s a build issue, try run npm run build in the terminal before trying to publish on Vercel Please let us know if this fixes your issue.
IkiTg07
IkiTg07OP12mo ago
Finally it worked. What's weird tho is that at the beginning even after running bun run build (i use bun) the build on my local machine was successful. What I did was remove kinde dep, delete node_modules and bun.lockb then reinstall kinde sdk
Oli - Kinde
Oli - Kinde12mo ago
Good to hear you solved your issue @IkiTg07. Also thank you for sharing how you solved your issue, as this will help us solve issues that other customers may come across with NextJS. Please don't hesitate to reach out if you come across any other issues.
IkiTg07
IkiTg07OP12mo ago
Thank for your time and help !
Want results from more Discord servers?
Add your server