{"action":"created","issue":{"url":"https://api.github.com/repos/storybooks/storybook/issues/4166","repository_url":"https://api.github.com/repos/storybooks/storybook","labels_url":"https://api.github.com/repos/storybooks/storybook/issues/4166/labels{/name}","comments_url":"https://api.github.com/repos/storybooks/storybook/issues/4166/comments","events_url":"https://api.github.com/repos/storybooks/storybook/issues/4166/events","html_url":"https://github.com/storybooks/storybook/issues/4166","id":359189531,"node_id":"MDU6SXNzdWUzNTkxODk1MzE=","number":4166,"title":"Multiple .env support","user":{"login":"dandrei","id":350897,"node_id":"MDQ6VXNlcjM1MDg5Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/350897?v=4","gravatar_id":"","url":"https://api.github.com/users/dandrei","html_url":"https://github.com/dandrei","followers_url":"https://api.github.com/users/dandrei/followers","following_url":"https://api.github.com/users/dandrei/following{/other_user}","gists_url":"https://api.github.com/users/dandrei/gists{/gist_id}","starred_url":"https://api.github.com/users/dandrei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dandrei/subscriptions","organizations_url":"https://api.github.com/users/dandrei/orgs","repos_url":"https://api.github.com/users/dandrei/repos","events_url":"https://api.github.com/users/dandrei/events{/privacy}","received_events_url":"https://api.github.com/users/dandrei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-11T19:28:36Z","updated_at":"2018-09-13T12:19:13Z","closed_at":null,"author_association":"NONE","body":"### Have Storybook read from multiple `.env` files, if present\r\n\r\nCreate React App supports multiple `.env` files.\r\n\r\nIt reads `.env.development` when it's run locally (e.g. with `yarn start`), and `.env.production` when it's built.\r\n\r\n[Ticket #1833](https://github.com/storybooks/storybook/issues/1833) (curiously, created exactly one year ago) added `.env` support to Storybook, which works fine.\r\n\r\nWould it be possible to get Storybook to read other files, if present?\r\n\r\nThanks!\r\n\r\n### Version\r\n\r\nFrom `package.json`:\r\n\r\n```  \r\n\"@storybook/react\": \"^3.4.10\",\r\n\"@storybook/addon-actions\": \"^3.4.10\",\r\n\"@storybook/addon-links\": \"^3.4.10\",\r\n\"@storybook/addons\": \"^3.4.10\",\r\n```"},"comment":{"url":"https://api.github.com/repos/storybooks/storybook/issues/comments/420986476","html_url":"https://github.com/storybooks/storybook/issues/4166#issuecomment-420986476","issue_url":"https://api.github.com/repos/storybooks/storybook/issues/4166","id":420986476,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDk4NjQ3Ng==","user":{"login":"pksunkara","id":174703,"node_id":"MDQ6VXNlcjE3NDcwMw==","avatar_url":"https://avatars0.githubusercontent.com/u/174703?v=4","gravatar_id":"","url":"https://api.github.com/users/pksunkara","html_url":"https://github.com/pksunkara","followers_url":"https://api.github.com/users/pksunkara/followers","following_url":"https://api.github.com/users/pksunkara/following{/other_user}","gists_url":"https://api.github.com/users/pksunkara/gists{/gist_id}","starred_url":"https://api.github.com/users/pksunkara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pksunkara/subscriptions","organizations_url":"https://api.github.com/users/pksunkara/orgs","repos_url":"https://api.github.com/users/pksunkara/repos","events_url":"https://api.github.com/users/pksunkara/events{/privacy}","received_events_url":"https://api.github.com/users/pksunkara/received_events","type":"User","site_admin":false},"created_at":"2018-09-13T12:19:12Z","updated_at":"2018-09-13T12:19:12Z","author_association":"MEMBER","body":"You can do `NODE_ENV=development start-storybook` and it should read from `.env.development`"}}
{"actor":{"display_login":"pksunkara"}}