You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/routes/configuration/environment-variables.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Public variables are considered safe to expose to the client-side code. These va
11
11
In the root directory of the project, create a file called `.env`.
12
12
This file will store environment variables in the `key = value` format.
13
13
14
-
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.
14
+
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.
15
15
16
16
```typescript
17
17
interfaceImportMetaEnv {
@@ -79,7 +79,7 @@ For an example, check the pseudo-code below.
79
79
}
80
80
```
81
81
82
-
It is also possible to make `process.env` type-safe via the same `.env.d.ts` file.
82
+
It is also possible to make `process.env` type-safe via the same `env.d.ts` file.
0 commit comments