Hi,
Since last Tuesday afternoon, all of our PRs previews have been returning:
Error: This action with HTTP GET is not supported by NextAuth.js
This is an error that comes from NextAuth and from their docs that could be related to not specifying a NEXTAUTH_URL variable. We’ve been following Netlify docs that say there’s no need to set that variable since is done automatically, but suddenly is just not working anymore.
Everything works fine in local mode, and we have tried setting the variable in the netlify.toml file but no results.
[context.deploy-preview.environment]
NEXTAUTH_URL="https://deploy-preview-127--xxx.netlify.app"
We had the same issue in production too, but after coming back to an old commit and rebuilding the project the error stopped appearing. It looks like something could be being cached, but we are not able to find what it is and the relation with NexAuth.
I’m not sure what is causing the problem and why is popping. We’ve been using NexAuth for the past 6 months with no issues.
Thanks in advance.