3D model file missing from Vitejs build

I tried using assetsInclude and a public dir, but neither worked.

What happens when you change

/project/assets/rov.glb

to

../assets/rov.glb

?

you need to put static assets into the /public folder. the bundler will copy the contests into /dist and then they’ll be accessible by url. you’re using some rando folder, but it won’t work like that, you can already see that it’s entirely missing in /dist. if you have a file in /public/model.glb, then the path will be just “/model.glb”