Determine the environment by looking up the machine's hostname.
The hostnames dictionary is a set of key-value pairs in which the key is the name
of the environment, and the value is an array of hostnames that are used for that
environment. Values can be strings (in which the * is used as glob for matching)
or regular expressions objects.
Parameters
Optional env: string
If passed, this is the environment that will be used
Determines the environment to use.
envparameterprocess.env.NODE_ENVThe
hostnamesdictionary is a set of key-value pairs in which the key is the name of the environment, and the value is an array of hostnames that are used for that environment. Values can be strings (in which the * is used as glob for matching) or regular expressions objects.