What's the proper way to link NFT image descriptors in a GitHub Pages repo?

I’m having trouble with an AR.js NFT project on my GitHub Pages site. I made new image descriptors and put them in a folder called public/assets/. The camera shows up and I see a loading message, but the console says “Error in loading marker on Worker 404”.

Here’s how I’m trying to link the image descriptors:

url="public/assets/MyMarker"

Does anyone know what I’m doing wrong? I thought this was the right way to set it up, but maybe I’m missing something obvious. Any help would be great!

I’ve encountered similar issues with GitHub Pages and AR.js. Here’s what worked for me:

First, try changing your URL to ‘/assets/MyMarker’. GitHub Pages serves from the repo root, not the ‘public’ folder.

If that doesn’t work, double-check your file names and paths. Case sensitivity matters, so ‘MyMarker’ and ‘mymarker’ are different.

Also, verify your files are accessible by going to yourusername.github.io/your-repo-name/assets/MyMarker in your browser. If you can’t see them, it’s likely a path or permissions issue.

Lastly, ensure your AR.js configuration is set up correctly for loading these markers. Sometimes version updates can affect how markers are loaded.

Hope this helps! Let us know if you need more assistance.

hey there LeapingFox! i’m kinda new to AR.js myself but i had a similar issue recently. have you tried changing the url to just ‘/assets/MyMarker’ instead? i think github pages might be looking at the root of your repo, not the ‘public’ folder.

also, stupid question maybe, but did you double check that the file names match exactly? i spent hours debugging once cuz i had a capital letter in my filename that i forgot about :sweat_smile:

oh and another thing - are you able to see the files if you go to yourusername.github.io/your-repo-name/assets/MyMarker in your browser? that might help figure out if it’s a path issue or something else.

let me know if any of that helps! i’m curious to hear what you find out

yo LeapingFox, i had similar probs. try ‘/assets/MyMarker’ instead. GH Pages uses repo root, not ‘public’. double-check filenames (caps matter!) & see if u can access files directly in browser at yourusername.github.io/your-repo-name/assets/MyMarker. that’ll help pinpoint if its a path issue. lmk how it goes!