Enums

@system-inc/base-foundation · 515c140 · 3 symbols

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

  • Development

  • Production

View source ↗

Execution mode of the base application.

Members

  • CommandLine

    Command 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.

  • Default

    The 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.

  • Local

    Local 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.

  • Test

    Test 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): ExecutionModeType

    Converts the given string to an ExecutionMode.

View source ↗

The platform is the system the worker is going to be running on.

Members

  • CloudflareDurableObject

  • CloudflareWorker

  • Node

View source ↗