For the complete documentation index, see llms.txt. This page is also available as Markdown.

Environment.environment

Functional API getOperationalEnvironmentYou can use the same feature with it as well.

Feature description

This is the currently running operating environment. If it's the Toss app, 'toss', if it's sandbox, 'sandbox'it is. You can use it when determining whether a specific feature is available.

It's a constant value, so you can read it directly without calling anything.

Type

Environment.environment: "toss" | "sandbox";

Params

None

Response

If it's the Toss app, 'toss', if it's sandbox, 'sandbox' It's a string.

Example code

import { Environment } from "@apps-in-toss/web-framework";

console.log(Environment.environment);

Was this helpful?