Ember does not upload some images to production

I have an Ember-cli 1.13 application in which there are many images stored in a public directory. Now it will correctly load all images except those that are in a specific component.

The component is called like this:

{{list-item url="list-url" name="List Name" price="240"}}

Internally, the component is as follows:

<a href="http://example.com/{{url}}">
  <img src="/{{url}}.png" alt='Picture of the {{name}}' />
  <p class="item-name">{{name}}</p>
  ...
</a>

When I create the application and launch the hero, the broken path

https://ridiculous-name-123123.herokuapp.com/list-item.png

This is the same as the localhost path, with the exception of another domain.

All other images work when they are not used with components.

Where am I going wrong?

+4
source share
1 answer

env, , fingerprinting.

, , "" URL- , ember-cli-build.js:

var app = new EmberApp({
  fingerprint: {
    exclude: ['myComponentImages/']
  }
});

URL- , , , .

+3

Source: https://habr.com/ru/post/1629280/


All Articles