Replies: 1 comment 1 reply
-
Is this merged yet? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Supabase CLI 2.7.0 adds support for bundling Edge Functions with static files.
You can access bundled files via Deno's file-system APIs. Here's an example function that serves a PDF file.
Use cases
How to configure
You will need to add static files to the function's directory to bundle them. Then, in the
supabase/config.toml
file for the project, add these lines:You can specify an array of files or use a glob pattern (eg: "./functions/email-templates/*.html")
Check the CLI configuration reference for more details: https://supabase.com/docs/guides/local-development/cli/config#functions.function_name.static_files
Note: This feature is currently not available with branching and will be added with the next stable release of the CLI.
Beta Was this translation helpful? Give feedback.
All reactions