Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore(docs): Added static_files to CLI config (#32801)

Lakshan Perera9349d22360e2
diff --git a/apps/docs/spec/cli_v1_config.yaml b/apps/docs/spec/cli_v1_config.yaml
index fca79cb6203..da477bb28c1 100644
--- a/apps/docs/spec/cli_v1_config.yaml
+++ b/apps/docs/spec/cli_v1_config.yaml
@@ -1497,6 +1497,19 @@ parameters:
[functions.my_function]
entrypoint = "path/to/custom/function.ts"
+ - id: 'functions.function_name.static_files'
+ title: 'functions.<function_name>.static_files'
+ tags: ['edge-functions']
+ required: false
+ description: |
+ Specify an array of static files to be bundled with the function. Supports glob patterns.
+ links:
+ - name: '`supabase functions` CLI subcommands'
+ link: 'https://supabase.com/docs/reference/cli/supabase-functions'
+ usage: |
+ [functions.my_function]
+ static_files = [ "./functions/MY_FUNCTION_NAME/*.html", "./functions/MY_FUNCTION_NAME/custom.wasm" ]
+
- id: 'analytics.enabled'
title: 'analytics.enabled'
tags: ['analytics']