Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure non /assets/ files can be served. #1549

Merged
merged 1 commit into from
Aug 3, 2014

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Aug 3, 2014

Previously, any files in public/ (outside of public/assets/) would not be served up as it was assumed to match history API requests and redirect to /index.html.

This commit fixes that, by serving up any files that exist in the built output directory before falling back to checking for history API support (and subsequently proxying).

Closes #1404.

This is a prerequisite for #1542.

Previously, any files in `public/` (outside of `public/assets/`) would
not be served up as it was assumed to match history API requests and
redirect to `/index.html`.

This commit fixes that, by serving up any files that exist in the built
output directory before falling back to checking for history API support
(and subsequently proxying).
stefanpenner added a commit that referenced this pull request Aug 3, 2014
Ensure non `/assets/` files can be served.
@stefanpenner stefanpenner merged commit 0e2f5f8 into ember-cli:master Aug 3, 2014
@stefanpenner stefanpenner deleted the fix-public-dir branch August 3, 2014 22:55
rwjblue added a commit that referenced this pull request Aug 4, 2014
@mewben
Copy link

mewben commented Aug 25, 2014

Cool thanks...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

static assets without a file extension
4 participants