We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a simple setup, .env file at the same level as my package.json with simply:
.env
package.json
API_URL=http://localhost:8080
Then, in my client app I've tried something like:
console.log(process.env); // {}
I've tried deleting my .cache but no dice. My parcel version is 1.12.3.
.cache
1.12.3
The text was updated successfully, but these errors were encountered:
console.log(process.env);
process.env.API_URL should definitely work. I don't know if this is a bug or intended...
process.env.API_URL
Sorry, something went wrong.
process.env doesn't get inlined entirely for security reasons afaik.
process.env
you should be more specific as @mischnic mentioned
So process.env.API_URL works but process.env does not
Ah ok, yup that was it. I don't understand how that works, but it works.
I'd like to learn how this is realized :wow:
No branches or pull requests
I have a simple setup,
.env
file at the same level as mypackage.json
with simply:Then, in my client app I've tried something like:
I've tried deleting my
.cache
but no dice. My parcel version is1.12.3
.The text was updated successfully, but these errors were encountered: