Skip to main content
15 events
when toggle format what by license comment
Jun 9 at 6:43 comment added Sam Sabin What would be the standard process of this with SvelteKit? It seems they’ve created their own unique system with $env modules, but it also seems root config files may not have access? Would I then use process.env instead?
Mar 5, 2022 at 12:11 comment added Fadi @Alper yes, but the modifications will not be reflected outside the node process
Dec 8, 2021 at 12:56 comment added Alper Can you use process.env to modify the environment as well like you can in Python?
Jul 22, 2019 at 11:02 comment added Peter Hull The URL describing React applications has changed - facebook.github.io/create-react-app/docs/…
Aug 4, 2018 at 20:21 comment added villy393 Also for everyone using Vue, your env vars need to be prefixed with VUE_APP_
Oct 20, 2017 at 18:17 comment added Mark Edington @Mr.14 Right you are! It's REACT_APP_ not REACT_ENV_
Oct 19, 2017 at 15:35 comment added Mr. 14 @MarkEdington I think it should be REACT_APP_
Jul 11, 2017 at 12:25 comment added Mark Edington It's worth mentioning that this does not work in a React application. process.env is sanitized for security reasons. Only variables that begin with REACT_ENV_ are available. See: github.com/facebookincubator/create-react-app/blob/master/…
Dec 10, 2016 at 19:24 history edited Michał Perłakowski CC BY-SA 3.0
added 31 characters in body
Sep 11, 2015 at 17:16 comment added chicks this also works for assigning variables. process.env.FOO = "foo"; works.
May 30, 2015 at 10:10 comment added Marko Bonaci Note that this will not be visible outside the node process and its subprocesses. E.g. it wouldn't be visible if you fire env in another shell window while the node process is running, nor in the same shell after the node process exits.
Feb 23, 2015 at 17:03 history edited Mark Stosberg CC BY-SA 3.0
Add link to official docs for process.env
Apr 26, 2013 at 14:56 history edited Ross CC BY-SA 3.0
Hope this is an agreeable edit! :)
Apr 14, 2011 at 3:21 vote accept Jayesh
Feb 2, 2011 at 3:14 history answered Jayesh CC BY-SA 2.5