nprapps / liveblog-standalone

NPR's liveblog rig 2.0
Other
6 stars 1 forks source link

Proxy files as a part of the build #7

Closed thomaswilburn closed 4 years ago

thomaswilburn commented 4 years ago

The livestream playlist URL (an M3U file) is stored on a subdomain that we can't access from apps.npr.org. However, we can do it from the build process, and then store that file in the build folder to be requested via fetch.

The 2016 election rig actually parsed these files during build, which is something we could look at doing. I don't have a strong preference, although I find myself leaning toward a more transparent proxy over a more complicated build task.

thomaswilburn commented 4 years ago

Looks like streams are currently served via a playlist with correct Access-Control-Allow-Origin headers, so I'll close this.