Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

311
Views
When I deploy to Heroku, my deployment is successful but my .glb file receives 404 error

As title states, whenever I deploy my app, the entire three.js project deploys perfectly but 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. I am using Vite.js for local running

Github repo - https://github.com/ElijahSchrock/Neo-Runner

Heroku Deploy - https://neo-runner.herokuapp.com/

Here is my package.json

Here is my create character function

Here is Don McCurdy's take on it from the threejs forum https://discourse.threejs.org/t/when-i-deploy-to-heroku-my-deployment-is-successful-but-my-glb-file-receives-404-error/32750/2

And I am also using the static build pack as well as the nodejs buildpack. please help !! Thank you! :)

about 4 years ago · Juan Pablo Isaza
3 answers
Answer question

0

There is a tiny issue with your path to the glTF asset. Instead of:

loader.load('./Neo.glb', (gltf) => {

you want to use:

loader.load('./model/Neo.glb', (gltf) => {
about 4 years ago · Juan Pablo Isaza Report

0

this error has been solved by hosting my files on aws s3 and using that object url in my gltf loader. Make sure to set your CORS correctly

about 4 years ago · Juan Pablo Isaza Report

0

Excuse me Mr.Schrock did you run the NPM and make sure to pass the variables through the selective bloom? I'd say using a component in layerville livewire would be your best option. However, I also think that if you call the function into the div, you can use a boolean to make an if else statement. Make sure that you use node to call your react for deployment. Throw some swift elements into the app for your jquery on Heroku or look thru your contributions in the branch.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!