# 환경 변수를 정의할 때 타입 에러가 발생할 경우

1. [env.d.ts](https://env.d.ts) 생성

2. tsconfig.json에서 /src.**/*.d.ts 를 `include`로 포함시키기

3. 아래 타입 정의 진행

```
interface ImportMeta {
  readonly env: {
    VITE_API_URL: string,
    ...

    [key: string]: string // 이 방법도 있긴하지만, IDE 및 타입스크립트가 자동 완성을 시켜주지 못함 
  }
}
```

For the site tree, see the [root Markdown](https://slashpage.com/timmy.md).
