From 0fe9ac28a2c3c44e2c5dee5b34c19c2fd05d1110 Mon Sep 17 00:00:00 2001 From: Qiao Han Date: Thu, 28 Nov 2024 16:06:59 +0800 Subject: [PATCH] chore: document function config in toml --- pkg/config/templates/config.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkg/config/templates/config.toml b/pkg/config/templates/config.toml index cc674d59b..ec89b2870 100644 --- a/pkg/config/templates/config.toml +++ b/pkg/config/templates/config.toml @@ -236,8 +236,18 @@ enabled = true # Configure one of the supported request policies: `oneshot`, `per_worker`. # Use `oneshot` for hot reload, or `per_worker` for load testing. policy = "oneshot" +# Port to attach the Chrome inspector for debugging edge functions. inspector_port = 8083 +# Use these configurations to customize your Edge Function. +# [functions.MY_FUNCTION_NAME] +# enabled = true +# verify_jwt = true +# import_map = "./functions/MY_FUNCTION_NAME/deno.json" +# Uncomment to specify a custom file path to the entrypoint. +# Supported file extensions are: .ts, .js, .mjs, .jsx, .tsx +# entrypoint = "./functions/MY_FUNCTION_NAME/index.ts" + [analytics] enabled = true port = 54327