Skip to content

Commit d1853ed

Browse files
Chore: warning about static files & edge functions (supabase#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>
1 parent d369324 commit d1853ed

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

apps/docs/content/guides/functions/limits.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ subtitle: "Limits applied Edge Functions in Supabase's hosted platform."
3131
- Outgoing connections to ports `25` and `587` are not allowed.
3232
- 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`).
3333
- Web Worker API (or Node `vm` API) are not available.
34+
- 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).
3435
- Node Libraries that require multithreading are not supported. Examples: [`libvips`](https://github.com/libvips/libvips), [sharp](https://github.com/lovell/sharp).

apps/docs/content/guides/functions/wasm.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ Before deploying, ensure the Wasm module is bundled with your function by defini
122122

123123
<Admonition type="note">
124124

125-
You will need update Supabase CLI to 2.7.0 or higher for the `static_files` support.
125+
- You will need update Supabase CLI to 2.7.0 or higher for the `static_files` support.
126+
- 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).
126127

127128
</Admonition>
128129

0 commit comments

Comments
 (0)