Skip to content

Commit

Permalink
docs(glee): update latest glee documentation (#2521)
Browse files Browse the repository at this point in the history
  • Loading branch information
asyncapi-bot authored Jan 2, 2024
1 parent 8441f3a commit 57860a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/docs/tools/glee/env-vars-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`|
Expand All @@ -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:

Expand Down Expand Up @@ -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|
Expand Down
1 change: 1 addition & 0 deletions pages/docs/tools/glee/function-lifecycle-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 57860a1

Please sign in to comment.