Skip to content

ConfigEnv

This content is not available in your language yet.

Defined in: core/src/config-loader.ts:39

함수형 config 호출 시 주입되는 컨텍스트 (Vite 호환 형태).

  • command: CLI 모드. bundle (default), serve, watch.
  • mode: --mode <name> 으로 지정. 미지정 시 command 별 기본값 (serve/watchdevelopment, 그 외 → production).
  • env: process.env + .env* merge 결과. CLI 경로에서는 loadEnv() prefix 필터 결과를 shell env 위에 합쳐 전달한다.

command: "bundle" | "serve" | "watch"

Defined in: core/src/config-loader.ts:40


env: Record<string, string | undefined>

Defined in: core/src/config-loader.ts:42


mode: string

Defined in: core/src/config-loader.ts:41