From d1853ed6a2a9085e1ecb31f48563d20522335eac Mon Sep 17 00:00:00 2001 From: Rodrigo Mansueli Date: Wed, 6 Aug 2025 17:53:43 -0300 Subject: [PATCH] Chore: warning about static files & edge functions (#37733) * Chore: warning about static files & edge functions * Update limits.mdx * Update wasm.mdx * Update apps/docs/content/guides/functions/wasm.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- apps/docs/content/guides/functions/limits.mdx | 1 + apps/docs/content/guides/functions/wasm.mdx | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/docs/content/guides/functions/limits.mdx b/apps/docs/content/guides/functions/limits.mdx index 0fd34dfa68..b9c6087749 100644 --- a/apps/docs/content/guides/functions/limits.mdx +++ b/apps/docs/content/guides/functions/limits.mdx @@ -31,4 +31,5 @@ subtitle: "Limits applied Edge Functions in Supabase's hosted platform." - Outgoing connections to ports `25` and `587` are not allowed. - Serving of HTML content is only supported with [custom domains](/docs/reference/cli/supabase-domains) (Otherwise `GET` requests that return `text/html` will be rewritten to `text/plain`). - Web Worker API (or Node `vm` API) are not available. +- Static files cannot be deployed using the API flag. You need to build them with [Docker on the CLI](/docs/guides/functions/quickstart#step-6-deploy-to-production). - Node Libraries that require multithreading are not supported. Examples: [`libvips`](https://github.com/libvips/libvips), [sharp](https://github.com/lovell/sharp). diff --git a/apps/docs/content/guides/functions/wasm.mdx b/apps/docs/content/guides/functions/wasm.mdx index 269db810a8..32603f39fb 100644 --- a/apps/docs/content/guides/functions/wasm.mdx +++ b/apps/docs/content/guides/functions/wasm.mdx @@ -122,7 +122,8 @@ Before deploying, ensure the Wasm module is bundled with your function by defini -You will need update Supabase CLI to 2.7.0 or higher for the `static_files` support. +- You will need update Supabase CLI to 2.7.0 or higher for the `static_files` support. +- Static files cannot be deployed using the `--use-api` API flag. You need to build them with [Docker on the CLI](/docs/guides/functions/quickstart#step-6-deploy-to-production).