A-Frame - Path for Importing Images Issue - Change from Web Origin to Local Project

172 Views Asked by At

I have a working A-Frame site deployed here: https://clevrar.co.za/robben-island-demo

This was created with the IdeaSpace CMS.

I have downloaded the site in order to try and add a service-worker script to it (I'm fine with that part and don't need assistance there), and it works surprisingly well and as expected, except the PhotoSpheres used in the scenes aren't displaying as the source is pointing to an online domain. See deployment attempt here: https://boundless-hole.surge.sh/ and the errors here:

error screenshot

The path to the images in my local project currently is: public/assets/user/photospheres/

How do I reference them correctly in the index.html folder so that they will be visible?

1

There are 1 best solutions below

2
Piotr Adam Milewski On

If you have the files locally on Your server (and as far as i see they are there ),

why not change the <img> src attribute in the <a-assets> to https://boundless-hole.surge.sh/public/assets/user/photospheres/image_name.jpg instead of https://clevrar.co.za/public/assets/user/photospheres/image_name.jpg ?