Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

astro:env docs should explain which environment variables are captured at build vs runtime #9865

Closed
jyasskin opened this issue Oct 29, 2024 · 3 comments
Labels
add new content Document something that is not in docs. May require testing, confirmation, or affect other pages.

Comments

@jyasskin
Copy link

📚 Subject area/topic

environment variables

📋 Suggested page

https://5-0-0-beta.docs.astro.build/en/guides/environment-variables/#type-safe-environment-variables

📋 General description or bullet points (if proposing new content)

Some values for context and access result in the environment variable being checked and captured at build time, while other values cause the environment variable to only be read at runtime. The documentation should say which is which.

🖥️ Reproduction of code samples in StackBlitz

No response

@jyasskin jyasskin added the add new content Document something that is not in docs. May require testing, confirmation, or affect other pages. label Oct 29, 2024
@sarah11918
Copy link
Member

@florian-lefebvre would you be able to comment on this? Is there an improvement we can make to the docs about this?

@florian-lefebvre
Copy link
Member

In my opinion, we already talk about this in this section but maybe we emphasize or clarify it?

@sarah11918
Copy link
Member

I think that's fine, it's explained! Thank you Florian!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add new content Document something that is not in docs. May require testing, confirmation, or affect other pages.
Projects
None yet
Development

No branches or pull requests

3 participants