Skip to content

app/root.tsx - Referenceing ENV rather than env prop in Document? #909

Answered by kentcdodds
samuelcg asked this question in Q&A
Discussion options

You must be logged in to vote

That will work either way. I should probably document the environment variable setup (it's set up in this part of Epic Web: https://foundations.epicweb.dev/exercise/05/03/problem). ENV is a global variable in both server and browser that resolves to the same thing as env in this context.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@samuelcg
Comment options

Answer selected by samuelcg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants