FUNCTION_INVOCATION_TIMEOUT: Error occuring while logging in with vercel deployment for NextJS project
I am working on a project using NextJS with app router and MongoDB Atlas which included authentication and i am using next auth for the same. The code is working completely okay for the local host but vercel deployement encounters this issue. I searched the documentation and it says that FUNCTION_INVOCATION_TIMEOUT is due to the function invocation takes longer than the allowed execution time. It suggests to use the Edge functions which i dont have any idea how to use. I dont know if there is any error in my code due to which this error may be coming. When run locally the authentication works totally fine. So any help would be to the great help.