Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/routes/configuration/environment-variables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Public variables are considered safe to expose to the client-side code. These va
In the root directory of the project, create a file called `.env`.
This file will store environment variables in the `key = value` format.

If working with TypeScript it is possible to make such variables type-safe and enable your TypeScript Language Service Provider (LSP) to autocomplete them by creating a file called `.env.d.ts` in the root directory of the project.
If working with TypeScript it is possible to make such variables type-safe and enable your TypeScript Language Service Provider (LSP) to autocomplete them by creating a file called `env.d.ts` in the root directory of the project.

```typescript
interface ImportMetaEnv {
Expand Down Expand Up @@ -79,7 +79,7 @@ For an example, check the pseudo-code below.
}
```

It is also possible to make `process.env` type-safe via the same `.env.d.ts` file.
It is also possible to make `process.env` type-safe via the same `env.d.ts` file.

```typescript

Expand Down