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

Environment.environment

함수형 API getOperationalEnvironment로도 같은 기능을 쓸 수 있어요.

기능 설명

현재 실행 중인 운영 환경이에요. 토스 앱이면 'toss', 샌드박스면 'sandbox'예요. 특정 기능 사용 가능 여부를 판단할 때 활용할 수 있어요.

상수 값이라 호출 없이 바로 읽어요.

타입

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

Params

없음

Response

토스 앱이면 'toss', 샌드박스면 'sandbox' 문자열이에요.

예시 코드

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

console.log(Environment.environment);

도움이 되었나요?