Directly loaded URLs for /api/ fail to load #3024
For example loading: https://emberjs.com/api/ember/2.16/modules/@ember%2Fapplication
The https://github.com/heroku/heroku-buildpack-static uses a rewrite rule for proxying between paths that are different on the client and the proxied-to server. The website's config at https://github.com/emberjs/website/blob/master/static.json for /api/ doesn't use a different path, but regardless it passes through this rewrite.
It is a known issue with nginx https://trac.nginx.org/nginx/ticket/786?cversion=0&cnum_hist=2 that URLs are encoded for
I was able to /api/ work correctly by avoiding the
I've put a temporary fix in place. The Ember.js website is now using the buildpack hosted at https://github.com/mixonic/heroku-buildpack-static. This repo has a commit special-casing the API logic to use a non-rewrite path:
The statusboard continues to use the old, upstream path.
This doesn't seem like a great long-term solution, it would be much nicer to rely on the canonical buildpack or to simply stop using the generalized buildpack if we're going to maintain our own nginx config.
All API URLs are failing for me since yesterday, is this the same issue?
All CSS and JS files are 404ing for me: