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
[Docs]: Standardize and document prerendering environment variable __REDWOOD__PRERENDERING
#10372
Comments
Hey @ched-dev Thanks for filing. Would you be interested in contributing to the docs and sharing your use case? |
It's "private", that's why it has the double underscore prefix. Can you explain your use case a bit more please? That way we might be able to come up with a more official way of supporting what you want to do, rather than exposing an internal implementation detail 🙂 |
FWIW, some background in this thread https://discord.com/channels/679514959968993311/1221949945280467065
DT offers a few different suggestions in the thread. |
Thanks for the extra context @pantheredeye So it seems we should first try to better understand what's going on here, and then decide what to do. @ched-dev Would you be up for trying DT's suggestions as well, and report back any and all details you can find? Just so we get a full picture of the issue. I would prefer it if we could fix/handle this inside the framework, so that users don't have to think about this themselves 🙂 We want RW to solve these kinds of weird cases for our users! 😁 |
Summary and description
I recently use the
process.env.__REDWOOD__PRERENDERING
environment variable to check if I was within the prerendering build step but couldn't find any documentation on it. I believe it should be documented within the Environment & Variables documentation.I think it could be standardized to drop the double underscore prefix as well.
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: