Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Obscure assets config #159

Closed
cyrilchapon opened this issue Mar 13, 2020 · 2 comments
Closed

Obscure assets config #159

cyrilchapon opened this issue Mar 13, 2020 · 2 comments

Comments

@cyrilchapon
Copy link

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.

@cyrilchapon
Copy link
Author

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

@edmorley
Copy link
Member

edmorley commented Jun 9, 2022

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.

@edmorley edmorley closed this as not planned Won't fix, can't repro, duplicate, stale Jun 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants