Request for Assistance with Next.js and Auth0 Login Issue

Dear Netlify support team,

Until recently, everything was running smoothly. However, we have started facing a recurring problem when trying to login into our website. The login function, which worked flawlessly until now, seems to have developed a snag. The error we receive is as follows:


Version of Next.js: 13.3.2
Version of Auth0: “@auth0/nextjs-auth0”: “2.4.0”

Thank you in advance for your assistance.

Could you please share the site name?

1 Like

Also, could you try downgrading to Next.js Runtime v4.36.1: Release plugin-nextjs: v4.36.1 · netlify/next-runtime · GitHub

This is how you can specify the exact version to use: GitHub - netlify/next-runtime: The Next.js Runtime allows Next.js to run on Netlify with zero configuration

1 Like

It’s work now…

Hi Naor! This bug is probably related to a bundling change i’m working on. I’ve explained more over here: After deploying nextjs app with nextAuth, I get 500 Server Internal Error - #11 by korayalpaslan
Thanks for bearing with me on this one! Making changes around bundling is always super hard, because there’s a gazillion of different scenarios :sweat_smile:

I’m looking into what exactly went wrong here. If your site is public, maybe you could share a link to the repo? That’d allow me to test my changes against it, so it’ll work when I roll this out the next time.

hiya @naor88 glad to hear it

1 Like

Hi @skn0tt,

Thanks for your diligent work on this issue! I’m currently engaged in a demo project to learn more about Next.js and full-stack technologies. The experience has been intriguing, despite some bumps along the way.

In relation to the repository you mentioned, I’d prefer to maintain the privacy of my project for now. However, I am open to assisting with the testing process once you’ve made modifications on your end.

When you’ve implemented your updates, just let me know. I’ll be more than willing to quickly check if the issue return after your deployment.

Your efforts to resolve this bug are appreciated. I look forward to your updates.