Enums
@system-inc/base-foundation · 515c140 · 3 symbols
EnvironmentType
The two environment names that carry framework semantics — the poles of
the environment spectrum, not an enumeration of all environments.
Names are free-form: a custom name (Staging, Dogfood, …) passes
through verbatim and is treated as a real, protected environment —
introspection off, migration gates enforced — without being listed
here. Deliberately closed: a new member would have no framework
behavior to attach to, so code that branches on a custom environment
compares environment.type instead.
Members
DevelopmentProduction
Execution mode of the base application.
Members
CommandLineCommand line (Cli) execution mode. Some Cli commands require an instantiated base application to run. This mode is used for that use case enabling a base application to initialize but not start while running inside the Cli.
DefaultThe default execution mode. This mode is used when the base application is running in a normal production environment. This is the default mode for the base application.
LocalLocal execution mode. This mode is used when the base application is running on a local machine. This mode is used to alter the system behavior to facilitate easier development.
TestTest execution mode. This mode is used when the base application is running as part of an test test suite. There could be situations where the base application needs to behave differently when running in an test suite. For instance, using a sandbox mode for an external service.
static fromString(mode:string):ExecutionModeTypeConverts the given string to an ExecutionMode.
PlatformType
The platform is the system the worker is going to be running on.
Members
CloudflareDurableObjectCloudflareWorkerNode