This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 214
Setting Environment Variables for preset-node #319
Comments
Node.js still has access to console.log(process.env.TEST); and ran the build with: TEST="hello world" neutrino build Your built file won't contain the string "hello world". It will still contain the call to Hope that answers your question. 👍 |
It makes sense, but as mentioned in the other issue, the env vars are
undefined when neutrino runs the script.
…On Sep 15, 2017 7:58 AM, "Eli Perelman" ***@***.***> wrote:
Closed #319 <#319>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#319 (comment)>,
or mute the thread
</~https://github.com/notifications/unsubscribe-auth/AASKzrll6GkiKGVFHvL-UPPUTcliK_suks5sipCUgaJpZM4PYbi5>
.
|
I ended up making a webpack plugin to start/restart the server using |
@trusktr @eliperelman I believe the confusion here may be related this bug: #839 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'd like for an app that I run with neutrino-preset-node to use real environment variables (not transpiled in).
How can we do this?
The text was updated successfully, but these errors were encountered: