-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Docs doesn't specify that import.meta.env is evaluated at build time with SSR adapter. #8509
Copy link
Copy link
Closed
Labels
good first issueGood for newcomersGood for newcomershelp wantedIssues looking for someone to run with them!Issues looking for someone to run with them!improve or update documentationEnhance / update existing documentation (e.g. add example, improve description, update for changes)Enhance / update existing documentation (e.g. add example, improve description, update for changes)
Description
📋 Explain your issue
In the docs it's not mentioned that using import.meta.env will be evaluated at build time. If you are using static generation, that goes without saying. But with a SSR adapter, I think many will expect this to be evaluated per request at runtime. I at least did until i looked in the transpiled server files.
I believe some clarification would be good.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedIssues looking for someone to run with them!Issues looking for someone to run with them!improve or update documentationEnhance / update existing documentation (e.g. add example, improve description, update for changes)Enhance / update existing documentation (e.g. add example, improve description, update for changes)