{"action":"created","issue":{"url":"https://api.github.com/repos/heroku/heroku-buildpack-static/issues/21","repository_url":"https://api.github.com/repos/heroku/heroku-buildpack-static","labels_url":"https://api.github.com/repos/heroku/heroku-buildpack-static/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/heroku/heroku-buildpack-static/issues/21/comments","events_url":"https://api.github.com/repos/heroku/heroku-buildpack-static/issues/21/events","html_url":"https://github.com/heroku/heroku-buildpack-static/pull/21","id":126713733,"number":21,"title":"Config Vars","user":{"login":"hone","id":16457,"avatar_url":"https://avatars.githubusercontent.com/u/16457?v=3","gravatar_id":"","url":"https://api.github.com/users/hone","html_url":"https://github.com/hone","followers_url":"https://api.github.com/users/hone/followers","following_url":"https://api.github.com/users/hone/following{/other_user}","gists_url":"https://api.github.com/users/hone/gists{/gist_id}","starred_url":"https://api.github.com/users/hone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hone/subscriptions","organizations_url":"https://api.github.com/users/hone/orgs","repos_url":"https://api.github.com/users/hone/repos","events_url":"https://api.github.com/users/hone/events{/privacy}","received_events_url":"https://api.github.com/users/hone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-01-14T18:10:56Z","updated_at":"2016-06-30T17:31:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/heroku/heroku-buildpack-static/pulls/21","html_url":"https://github.com/heroku/heroku-buildpack-static/pull/21","diff_url":"https://github.com/heroku/heroku-buildpack-static/pull/21.diff","patch_url":"https://github.com/heroku/heroku-buildpack-static/pull/21.patch"},"body":"The buildpack will read any env vars that are prefixed with `HEROKU_STATIC_` and write out a file accessible at `/--/env.js` and `/--/env.json`. The `/--/env.js` file will create a JavaScript object `__env` on `window`. Where the `/--/env.json` will just be a JSON representation.\r\n\r\nAn example how this will look:\r\n\r\nIf the env vars are set, `FOO` will be picked up but `BAR` will not be.\r\n```sh\r\n$ heroku config:set HEROKU_STATIC_FOO=foo BAR=bar\r\n```\r\n\r\n`/--/env.js`:\r\n```javascript\r\nwindow.__env = {\r\n  \"FOO\": \"foo\"\r\n}\r\n```\r\n\r\n`/--/env.json`:\r\n```json\r\n{\r\n  \"FOO\": \"foo\"\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/heroku/heroku-buildpack-static/issues/comments/229731242","html_url":"https://github.com/heroku/heroku-buildpack-static/pull/21#issuecomment-229731242","issue_url":"https://api.github.com/repos/heroku/heroku-buildpack-static/issues/21","id":229731242,"user":{"login":"hone","id":16457,"avatar_url":"https://avatars.githubusercontent.com/u/16457?v=3","gravatar_id":"","url":"https://api.github.com/users/hone","html_url":"https://github.com/hone","followers_url":"https://api.github.com/users/hone/followers","following_url":"https://api.github.com/users/hone/following{/other_user}","gists_url":"https://api.github.com/users/hone/gists{/gist_id}","starred_url":"https://api.github.com/users/hone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hone/subscriptions","organizations_url":"https://api.github.com/users/hone/orgs","repos_url":"https://api.github.com/users/hone/repos","events_url":"https://api.github.com/users/hone/events{/privacy}","received_events_url":"https://api.github.com/users/hone/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T17:31:53Z","updated_at":"2016-06-30T17:31:53Z","body":"@mattcreager can you explain your use case a bit more? I can rebase this PR against master for the time being."}}
{"actor":{"display_login":"hone"}}