Configuration
June 2, 2024 ยท View on GitHub
The data model and business logic is specified in the
configuration used by the run
instruction.
There are several ways to define the configuration:
- as a file
- as an environment variable
- as a command line option
- as a Node.js option.
When using a configuration file, several formats can be used. It can also be broken down into several files or import Node.js modules using references.
Functions
Custom logic can be added to the configuration by using JavaScript functions.
Those functions take a set of parameters as input describing the current context, for example the current request. Both the clients and the server can also define their own parameters.