0

I've deployed my website using Heroku. I am also using Vueper Slides which needs a variable, which is an array, containing the path to the image. On the live website I noticed that it does not contain the images folder contained in my dist folder. What can I do to fix this?

Javascript array variable: Javascript array variable

dist directory:

dist directory

Heroku source files:

Heroku source files

1 Answers1

1

This is not a definite answer, but can help.

I noticed you are using the public folder where you keep your images. you may want to double check that the path is correct because it should just load stuff within the public folder.

However, I don't understand why it doesn't load in the images folder from dist.

  • I'm embarrassed, the path had a typo. It works now, but is there a way to import the `images` folder? – Stove Games Games Jun 30 '22 at 22:38
  • 1
    @Stove Games Games this may be useful but I would not advise doing this for images since it's a lot of manual labor and the `public` folder works just fine if not better. https://stackoverflow.com/questions/42199872/is-it-possible-to-import-vue-files-in-a-folder – Ethan Anderson Jun 30 '22 at 22:44