diff --git a/pages/docs/tools/glee/env-vars-config.md b/pages/docs/tools/glee/env-vars-config.md index f6e3176e362..d5dfed487e8 100644 --- a/pages/docs/tools/glee/env-vars-config.md +++ b/pages/docs/tools/glee/env-vars-config.md @@ -6,6 +6,7 @@ weight: 50 # Environment Variables Glee provides a few environment variables for you to customize the Glee application's behavior according to your specific requirements: + |Variable|Description|Example| |---|---|---| |GLEE_SERVER_NAMES|A comma-separated list of the servers to load on startup.|`GLEE_SERVER_NAMES=websockets,mosquitto`| @@ -16,7 +17,7 @@ Glee provides a few environment variables for you to customize the Glee applicat Glee comes with sensible defaults so you don't have to worry about configuration. However, sometimes you may want to change the behavior or customize Glee in different ways. For that purpose, you can use the `glee.config.js` file. -### The configuration file +### Configuration file Glee's config file is a JavaScript file that exports an async function. Something like this: @@ -107,6 +108,7 @@ export default async function () { } ``` Inside the return statement, you can specify the following options: + #### Glee Core Configurations These configurations apply to Glee itself, rather than any specific protocol. |Field|Default|Description| diff --git a/pages/docs/tools/glee/function-lifecycle-events.md b/pages/docs/tools/glee/function-lifecycle-events.md index 25a586d4271..d47f8f87bcf 100644 --- a/pages/docs/tools/glee/function-lifecycle-events.md +++ b/pages/docs/tools/glee/function-lifecycle-events.md @@ -14,6 +14,7 @@ export default async function (event) { ``` Functions take a single argument, which is the event received from a broker or a client, depending which kind of API you're building. The `event` argument has the following shape: + |Attribute|Description| |----|----| |payload|The payload/body of the received event.