{"action":"created","issue":{"url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/1070","repository_url":"https://api.github.com/repos/kriasoft/react-starter-kit","labels_url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/1070/labels{/name}","comments_url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/1070/comments","events_url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/1070/events","html_url":"https://github.com/kriasoft/react-starter-kit/issues/1070","id":199217624,"number":1070,"title":"How to set a different NODE_ENV?","user":{"login":"itaied246","id":16783038,"avatar_url":"https://avatars2.githubusercontent.com/u/16783038?v=3","gravatar_id":"","url":"https://api.github.com/users/itaied246","html_url":"https://github.com/itaied246","followers_url":"https://api.github.com/users/itaied246/followers","following_url":"https://api.github.com/users/itaied246/following{/other_user}","gists_url":"https://api.github.com/users/itaied246/gists{/gist_id}","starred_url":"https://api.github.com/users/itaied246/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itaied246/subscriptions","organizations_url":"https://api.github.com/users/itaied246/orgs","repos_url":"https://api.github.com/users/itaied246/repos","events_url":"https://api.github.com/users/itaied246/events{/privacy}","received_events_url":"https://api.github.com/users/itaied246/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-06T15:21:17Z","updated_at":"2017-03-06T23:33:20Z","closed_at":null,"body":"I am trying to set `process.env.NODE_ENV` to \"test\" when I run my tests.\r\nI make use of it when I'm logging.\r\n\r\nIn the `test/setup.js` I set NODE_ENV like this:\r\n`process.env.NODE_ENV = 'test';`\r\n\r\nAnd I run the tests using `npm run integration-test`:\r\n`\"integration-test\": \"npm run build && mocha \\\"test/**/*.test.js\\\" --require test/setup.js --require babel-register --timeout 30000\"`\r\n\r\nI logged the `NODE_ENV` in `server.js` and it says it is \"development\".\r\nAfter digging for a while, I have configured it is set in the webpack config file\r\n\r\n```\r\n...\r\nnew webpack.DefinePlugin({\r\n      'process.env.NODE_ENV': isDebug ? '\"development\"' : '\"production\"',\r\n      'process.env.BROWSER': false,\r\n      __DEV__: isDebug,\r\n    }),\r\n...\r\n```\r\n\r\nWhat is the best way to change the NODE_ENV without messing around in the webpack config file?\r\nHow can I set it to be \"test\" when I execute my integration tests?"},"comment":{"url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/comments/284569973","html_url":"https://github.com/kriasoft/react-starter-kit/issues/1070#issuecomment-284569973","issue_url":"https://api.github.com/repos/kriasoft/react-starter-kit/issues/1070","id":284569973,"user":{"login":"langpavel","id":142462,"avatar_url":"https://avatars1.githubusercontent.com/u/142462?v=3","gravatar_id":"","url":"https://api.github.com/users/langpavel","html_url":"https://github.com/langpavel","followers_url":"https://api.github.com/users/langpavel/followers","following_url":"https://api.github.com/users/langpavel/following{/other_user}","gists_url":"https://api.github.com/users/langpavel/gists{/gist_id}","starred_url":"https://api.github.com/users/langpavel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/langpavel/subscriptions","organizations_url":"https://api.github.com/users/langpavel/orgs","repos_url":"https://api.github.com/users/langpavel/repos","events_url":"https://api.github.com/users/langpavel/events{/privacy}","received_events_url":"https://api.github.com/users/langpavel/received_events","type":"User","site_admin":false},"created_at":"2017-03-06T23:33:20Z","updated_at":"2017-03-06T23:33:20Z","body":"It is still actual @itaied246?\r\n/cc @koistya @frenzzy"}}
{"actor":{"display_login":"langpavel"}}