{"action":"created","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/1462","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/1462/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/1462/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/1462/events","html_url":"https://github.com/gatsbyjs/gatsby/pull/1462","id":241885462,"number":1462,"title":"Allow for env files","user":{"login":"okcoker","id":1030830,"avatar_url":"https://avatars0.githubusercontent.com/u/1030830?v=3","gravatar_id":"","url":"https://api.github.com/users/okcoker","html_url":"https://github.com/okcoker","followers_url":"https://api.github.com/users/okcoker/followers","following_url":"https://api.github.com/users/okcoker/following{/other_user}","gists_url":"https://api.github.com/users/okcoker/gists{/gist_id}","starred_url":"https://api.github.com/users/okcoker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okcoker/subscriptions","organizations_url":"https://api.github.com/users/okcoker/orgs","repos_url":"https://api.github.com/users/okcoker/repos","events_url":"https://api.github.com/users/okcoker/events{/privacy}","received_events_url":"https://api.github.com/users/okcoker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-07-10T23:57:30Z","updated_at":"2017-07-11T00:09:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/1462","html_url":"https://github.com/gatsbyjs/gatsby/pull/1462","diff_url":"https://github.com/gatsbyjs/gatsby/pull/1462.diff","patch_url":"https://github.com/gatsbyjs/gatsby/pull/1462.patch"},"body":"Usually dotenv is used to throw variables on `process.env` but in this case I'm just using the `parse` method and adding those variables to webpack's DefinePlugin. This way `process.env` never gets altered. \r\n\r\nThis also make sure not to overwrite `NODE_ENV` or `PUBLIC_DIR`.\r\n\r\nTo use, you'd just put an `.env.development` or `.env.production` file in your root folder and those variables will be provided at dev/build time.\r\n\r\nCould fix #660"},"comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments/314284859","html_url":"https://github.com/gatsbyjs/gatsby/pull/1462#issuecomment-314284859","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/1462","id":314284859,"user":{"login":"gatsbybot","id":25650701,"avatar_url":"https://avatars0.githubusercontent.com/u/25650701?v=3","gravatar_id":"","url":"https://api.github.com/users/gatsbybot","html_url":"https://github.com/gatsbybot","followers_url":"https://api.github.com/users/gatsbybot/followers","following_url":"https://api.github.com/users/gatsbybot/following{/other_user}","gists_url":"https://api.github.com/users/gatsbybot/gists{/gist_id}","starred_url":"https://api.github.com/users/gatsbybot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gatsbybot/subscriptions","organizations_url":"https://api.github.com/users/gatsbybot/orgs","repos_url":"https://api.github.com/users/gatsbybot/repos","events_url":"https://api.github.com/users/gatsbybot/events{/privacy}","received_events_url":"https://api.github.com/users/gatsbybot/received_events","type":"User","site_admin":false},"created_at":"2017-07-11T00:09:07Z","updated_at":"2017-07-11T00:09:07Z","body":"Deploy preview ready!\n\nBuilt with commit eee521202dcaa93154102b5cfc2fad6aa513c97c\n\nhttps://deploy-preview-1462--gatsbyjs.netlify.com"}}
{"actor":{"display_login":"gatsbybot"}}