You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like some environment variables are pretty mandatory, at least as soon as we're not using a dev server anymore.
See #3325 where @manucorporat suggests one should set the ORIGIN environment variable. I've just been bitten by this too.
Maybe this should be uniformized a bit more and deserves a unique documentation page.
Or maybe each of these adapters should document the necessary environment variables on their respective documentation page.
The text was updated successfully, but these errors were encountered:
This Issue is to capture the discord conversation on Environment Variables w/ related video and repo for tracking purposes.
The attached video explanation and code repo is intended as a community resource that provides insights into environment variables in the Qwik lifecycle, how they are loaded from the .env file, and log them as they flow through the application's lifecycle (between server and client).
The repo allows the developer to explore what is provided as defaults vs loadEnv and dotenv library functions, their scope and depth.
NOTE: This is not a comprehensive guide on environment variables, nor does it cover all the 3rd-Party hosting scenarios, but gives insights that can be applied to all environments. Be sure to exclude .env files from your source control. The repo also contains an example to point elsewhere in the filesystem for the .env.mode files, such as the user/home directory.
Suggestion
It seems like some environment variables are pretty mandatory, at least as soon as we're not using a dev server anymore.
See #3325 where @manucorporat suggests one should set the
ORIGIN
environment variable. I've just been bitten by this too.Here is what Qwik City adapters use:
ORIGIN
orURL
.CF_PAGES_URL
orORIGIN
VERCEL_URL
Maybe this should be uniformized a bit more and deserves a unique documentation page.
Or maybe each of these adapters should document the necessary environment variables on their respective documentation page.
The text was updated successfully, but these errors were encountered: