'What are the Supabase Edge Functions Memory Limits
I created a Supabase Deno Edge Function that works perfectly well inside the Supabase Docker environment on my Mac, but whenever I execute it in production / the cloud I run into this error after a couple of seconds of execution time:
502: Bad Gateway (DEPLOYMENT_FAILED)
The deployment failed while serving the request.
My guess is that I'm running into a memory limit. According to my local logs (Supabase doesn't seem to get the logs when I run it on their infra) my script needs around a 150 MB in memory.
Does anyone here know what the production memory limits are for Supabase functions?
I can't find anything about that in the docs nor on the pricing page.
The file size of my script is 33 KB when I bundle the function via deno bunlde
, so it shouldn't be the script size limit, that's why I'm guessing it's a memory issue.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|