From 6f101932326b68dc1c858371ce1f87973a92cbe6 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Sat, 15 May 2021 21:51:22 -0700 Subject: [PATCH] Add link to Vite env var issue --- documentation/faq/60-env-vars.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/faq/60-env-vars.md b/documentation/faq/60-env-vars.md index 7e73296239ce..90e6908a55fb 100644 --- a/documentation/faq/60-env-vars.md +++ b/documentation/faq/60-env-vars.md @@ -2,7 +2,7 @@ question: How do I use environment variables? --- -Vite uses [dotenv](https://github.com/motdotla/dotenv) to load environment variables from a file named `.env` or similar. Only environment variables prefixed with `VITE_` are exposed. You would need to instantiate dotenv yourself if you want all environment variables exposed in `process.env['YOUR_ENV_VAR']`. +Vite uses [dotenv](https://github.com/motdotla/dotenv) to load environment variables from a file named `.env` or similar. Only environment variables prefixed with `VITE_` are exposed. You would need to instantiate dotenv yourself if you want all environment variables exposed in `process.env['YOUR_ENV_VAR']`. We hope to see all environment variables exposed on the server-side [in the future](https://github.com/vitejs/vite/issues/3176). For example, you can create a `.env` file in your project root folder with a `VITE_*` variable: