EnvVar: {
    get(key: string): Promise<string>;
} = ...

EnvVar provides methods to fetch environment variables from the Server Side Storage service. This module only works when running on server-side scenes.

Type declaration

  • get:function
    • Fetches a specific environment variable by key as plain text.

      Returns

      A promise that resolves to the plain text value, or empty string if not found

      Throws

      Error if not running on a server-side scene

      Parameters

      • key: string

        The name of the environment variable to fetch

      Returns Promise<string>