You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting a 503 error with next-auth when I try to redirect to /api/auth/signin. I also get the same error if I try to load the signin page directly without a redirect.
The Lambda function associated with the CloudFront distribution is invalid or doesn't have the required permissions. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.
myNextApp:
org: myOrgstage: prodcomponent: "@sls-next/serverless-component@1.18.0"# it is recommended you pin the latest stable version of serverless-next.jsinputs:
bucketName: myApp-nextjsregion: us-east-1name: myApp
Actual behavior
Next-auth api endpoints are not working.
Expected behavior
I expected the app to work the same way it does locally. I redirect to a signin page generated by next-auth when the user is not logged in.
You have reviewed the README and FAQs, which answers several common questions.
Please first try using the most recent latest or alpha@sls-next/serverless-componentrelease version, which may have already fixed your issue or implemented the feature you are trying to use. Note that the old serverless-next.js component and the serverless-next.js plugin are deprecated and no longer maintained.
The text was updated successfully, but these errors were encountered:
Describe the bug
I am getting a 503 error with next-auth when I try to redirect to
/api/auth/signin
. I also get the same error if I try to load the signin page directly without a redirect.Code:
Serverless.yml:
Actual behavior
Next-auth api endpoints are not working.
Expected behavior
I expected the app to work the same way it does locally. I redirect to a signin page generated by next-auth when the user is not logged in.
Could be related to #819 or #222
latest
oralpha
@sls-next/serverless-component
release version, which may have already fixed your issue or implemented the feature you are trying to use. Note that the oldserverless-next.js
component and theserverless-next.js
plugin are deprecated and no longer maintained.The text was updated successfully, but these errors were encountered: