Default the config.env to "prod"

To prevent "dev" features from accidentally being enabled this requires the `NODE_ENV` environment variable to be set to `dev`

The npm targets have been updated to set the variable.