Updated package.json
Added environment detection