As title states, whenever I deploy my app my .glb file receives the 404 resource not found error. I’m not sure what the issue is. I’ve tried to change the file path but no success.
Might need to ask this question on a Heroku forum – if I try accessing the file directly (https://neo-runner.herokuapp.com/Neo.glb) it’s not there, so there’s nothing wrong with your JavaScript. It seems to be something related to Heroku configuration I guess.
@donmccurdy okay thank you, at least it’s not an error in the code, unfortunately it seems like it’ll be harder to solve now lol. I will open up a question on that forum. I’ve also attempted deploying on Vercel, no luck there either. I appreciate the response! #onward
It could also have something to do with your .gitignore excluding dist/? I think at least Vercel will not deploy git-ignored files by default. Not sure about Heroku.
When deploying I never set a nginx config file, do I just add one to my file tree and add that into it? On previous deployments that don’t utilize gltf, the server was built for me and I didn’t need to configure it. I’ll look into setting one