I am building a website with Three.js for viewing STL file. Initially, I successfully managed to run the website on my localhost, where STL files were loading and displaying correctly. However, I ran into issue: the STL files and canvas components are now missing without any error messages or warnings after npx vite build
on live server.
I tried to rebuild project. I’ve also noticed that when running npx vite preview
, the canvas appears but without the STL files.
I tried to rebuild project a few times. with npx vite build, but it still didn’t work.
Thanks