heroku / heroku-buildpack-static

[DEPRECATED] Heroku buildpack for handling static sites and single page web apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Obscure assets config

cyrilchapon opened this issue · comments

I have the following config

{
  "root": "dist/",
  "clean_urls": true,
  "routes": {
    "/edito/assets/**": "/assets/",
    "/edito/a/b/c": "a/b/c.index.html",
    "/edito": "index.html"
  }
}

With this directory structure

dist
| a
| | b
| | | index.html
| assets
| | styles
| | | style.css
| index.html

when visiting https://myurl.com/edito/assets/styles/style.css I get a 404
when visiting https://myurl.com/assets/styles/style.css I get a 200

I can understand I'm still getting a 200 on the second one; but I would expect to get a 200 also on the first one. According to here in the docs

EDIT : for you to understand, my website is not at the root of my server.

Additional question : is there a way to avoid everything of this overhead; and just say everything coming to /edito => go to dist

Hi

This buildpack is now deprecated and we are recommending people move the more actively maintained heroku-buildpack-nginx. For migration advice see here.

As such, I'm closing this issue out since we won't be making further changes to this buildpack.