Replies: 2 comments 8 replies
-
Is this merged yet? |
Beta Was this translation helpful? Give feedback.
5 replies
-
How the heck does this work
but supabase cli is 2.33 today. Anyway the command seems to execute anyway as it says the files are being uploaded but they are nowhere to be found in the cloud interface. So bottom line is: it doesn't work. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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