Link to the code that reproduces this issue
https://github.com/space1worm/serverless-timeout-test
Hey everyone,
Next.js version : 13.5.3
Dir: App Directory
Do you have any ideas about why Vercel is returning a 504 error? I'm on the pro plan, and my serverless function is configured to run for a maximum of 5 minutes. my function for testing purposes needs 1.5m to execute.
In the logs, I can see that the serverless function is returning a 200 status code, and it's executing correctly. However, when I access it through postman, after exactly 1 minute, it returns a 504 error.
Everything works fine locally. What could be the issue?
Here is step by step description how to reproduce:
Go to -> https://test-liart-seven-84.vercel.app/
Click -> 'click to fetch' button
Expected behaviour -> after 1m30s you should see 'Hello World' text
Current behaviour -> Returns 504 Gateway Timeout Error