Vercel website don't show the loaded model from Vite public folder

if you look at the network tab, does it show that the request to the glb model succeeds? if not, what does it return?

I think you can also test this locally by running vite build and then locally hosting/inspecting the build file? to see if the glb file is correctly copied?

basically, the core issue is that you want the glb files to be hosted statically, so you need to be able to open a URL in your web app that has the glb file and for it to load/download

see also same issue here (although it looks like you already have the assetsInclude part set, so not sure why it’s not working. If you’re able to post your project on github or share a link to it or something I can take a deeper look

1 Like