Getting Started
__CAPGO_KEEP_1__를 복사하여 __CAPGO_KEEP_0__를 설정하기 위한 지시문을 설정하세요.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-env`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/env/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
__CAPGO_KEEP_2__와 __CAPGO_KEEP_3__, __CAPGO_KEEP_4__를 포함합니다.
__CAPGO_KEEP_2__bun add @capgo/capacitor-envbunx cap sync수입
수입 섹션import { Env } from '@capgo/capacitor-env';API 개요
API 개요 섹션getKey
getKey특정 환경 변수의 값을 가져옵니다.
이 메서드는 네이티브 빌드 프로세스 중에 설정된 환경 변수를 가져옵니다. 변수는 런타임에 액세스하기 전에 네이티브 프로젝트에서 구성해야 합니다.
import { Env } from '@capgo/capacitor-env';
const result = await EnvPlugin.getKey({ key: 'API_URL' });console.log(result.value); // 'https://api.example.com'진실의 근원
Source Of Truth이 페이지는 플러그인의 src/definitions.ts. 업스트림에서 API이 변경되었을 때 pubic API을 다시 동기화하세요.
Getting Started
Getting Started이러한 기능을 사용 중이라면 Getting Started 계획 대시보드 및 API 연산을 위해 연결하세요. Using @capgo/capacitor-env Using @capgo/capacitor-env API Overview API Overview __CAPGO_KEEP_0__ Introduction API Keys API Keys Capgo의 구현 세부 사항에 대한 설명입니다. 장치