Home
Support Forums

Netlify isn't loading .gltf models

Netlify is 404ing when trying to load my .gltf models in the site. The models load perfectly fine locally though. Any assistance with this is appreciated.

Hi @Alex_Bristow,

What’s the site URL?

https://condescending-ride-1a319e.netlify.app

github repo is: GitHub - abristow3/website

You need to store the models in public folder for Vite to be able to load them.

could you please provide an example if possible?

There’s nothing to demo here, you simply need to move all your gltf files from root of the repo to public folder. But I do have an example of what I mean, check out my project in Vite where I used public folder to store static files: