Reputation: 4457
Meteor currently advises to import everything. Like import Meteor from 'meteor/meteor';
.
So if I want to do something like console.log(process.env.MONGO_URL)
, what should I import?
Bonus question: I can't find the documentation for process
, where is it?
Upvotes: 0
Views: 39
Reputation: 8423
process
is a global object (so no need for import) and only available on the server. It is part of the node environment.
See https://nodejs.org/docs/latest-v8.x/api/process.html
Upvotes: 2