is it possible to pass environment variables to pkg? #143
Closed
laurencefass
started this conversation in
General
Replies: 2 comments
-
|
You can bake node options in the binary but not env vars, you can do kind of the same BTW if you create a pkg entrypoint where you set them. Considering your entrypoint is main.js you can create a process.env.myvar = "XXX"
require('main.js') |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
great, thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I havent worked out my mental model for this properly yet so apologies if this is an extremely naive question.
Is it possible to pass environment variables to pkg and have these available at execution time?
Like is it possible to specify the command line to use when running node from the exe wrapper?
I think probably not but just want to confirm Im not missing anything.
Beta Was this translation helpful? Give feedback.
All reactions