{"action":"created","issue":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/647","repository_url":"https://api.github.com/repos/facebookincubator/create-react-app","labels_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/647/labels{/name}","comments_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/647/comments","events_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/647/events","html_url":"https://github.com/facebookincubator/create-react-app/issues/647","id":176914623,"number":647,"title":"Applications served from cdn on different host","user":{"login":"SeeThruHead","id":8273939,"avatar_url":"https://avatars.githubusercontent.com/u/8273939?v=3","gravatar_id":"","url":"https://api.github.com/users/SeeThruHead","html_url":"https://github.com/SeeThruHead","followers_url":"https://api.github.com/users/SeeThruHead/followers","following_url":"https://api.github.com/users/SeeThruHead/following{/other_user}","gists_url":"https://api.github.com/users/SeeThruHead/gists{/gist_id}","starred_url":"https://api.github.com/users/SeeThruHead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeeThruHead/subscriptions","organizations_url":"https://api.github.com/users/SeeThruHead/orgs","repos_url":"https://api.github.com/users/SeeThruHead/repos","events_url":"https://api.github.com/users/SeeThruHead/events{/privacy}","received_events_url":"https://api.github.com/users/SeeThruHead/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebookincubator/create-react-app/labels/discussion","name":"discussion","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/milestones/8","html_url":"https://github.com/facebookincubator/create-react-app/milestones/1.0.0","labels_url":"https://api.github.com/repos/facebookincubator/create-react-app/milestones/8/labels","id":1980664,"number":8,"title":"1.0.0","description":"","creator":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":3,"state":"open","created_at":"2016-09-02T17:56:54Z","updated_at":"2016-09-18T08:40:06Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-09-14T13:57:53Z","updated_at":"2016-09-21T13:35:43Z","closed_at":null,"body":"I'm in the process of converting our companies internal boilerplate into something that uses create-react-app.\r\n\r\nWe load all of our applications into html rendered by rails views in our application. Js/css/etc built by webpack is served via cdn.\r\n\r\nIn our boilerplate we look in the env for CDN_URL and set that as publicpath. This cdn url is provided in local dev by a .env file (loaded via dotenv module) and during deploys by the build server.\r\n\r\nIn trying to keep with 12 factor app methodology we don't commit these urls to the codebase.\r\n\r\nSeems like publicpath is only currently modifiable by editing package.json.\r\n\r\nWould it be possible to use something like REACT_APP_STATIC_URL (or any other, better name) in order to construct the publicpath for webpack?"},"comment":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/comments/248614072","html_url":"https://github.com/facebookincubator/create-react-app/issues/647#issuecomment-248614072","issue_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/647","id":248614072,"user":{"login":"gaearon","id":810438,"avatar_url":"https://avatars.githubusercontent.com/u/810438?v=3","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T13:35:43Z","updated_at":"2016-09-21T13:35:43Z","body":"I’m open to merging support for `CDN_URL` env variable."}}
{"actor":{"display_login":"gaearon"}}