Skip to content

Commit 4c08d3b

Browse files
authored
Merge pull request #3942 from TeoKohan/patch-1
Add clarification about Vite exported variables
2 parents 1ae3670 + 89abffd commit 4c08d3b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/2/en/part2e.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,8 @@ const api_key = import.meta.env.VITE_SOME_KEY
624624
625625
Note that you will need to restart the server to apply the changes.
626626
627+
**NB:** To prevent accidentally leaking environment variables to the client, only variables prefixed with VITE_ are exposed to Vite.
628+
627629
This was the last exercise of this part of the course. It's time to push your code to GitHub and mark all of your finished exercises to the [exercise submission system](https://studies.cs.helsinki.fi/stats/courses/fullstackopen).
628630
629631
</div>

0 commit comments

Comments
 (0)