In localhost everything works fine but when deployed with Vercel hitting this error every second or third request when the middleware gets called...
long waiting and then this example error message:
[GET] [middleware: "middleware"] /browse reason=EDGE_FUNCTION_INVOCATION_TIMEOUT, status=504, user_error=true
I already tried different package versions and setting location near me
Environment
Reproduction URL
https://github.com/tobiasmeyhoefer/bitz
Describe the issue
In localhost everything works fine but when deployed with Vercel hitting this error every second or third request when the middleware gets called...
long waiting and then this example error message: [GET] [middleware: "middleware"] /browse reason=EDGE_FUNCTION_INVOCATION_TIMEOUT, status=504, user_error=true
I already tried different package versions and setting location near me
How to reproduce
you can clone and try to deploy it yourself or look here: https://bitz-ecru.vercel.app
Im using neon serverless database... one thing that is sus to me is that the file db.ts:
gets called every time, shouldn't the connection be established only once?
Expected behavior
no errors at all