glb model is not found after I run npm run build in vite #2792
Answered
by
shadybassily
shadybassily
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
shadybassily
Mar 4, 2023
Replies: 1 comment
-
so I managed to fix the issue, and it was all about the path. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
shadybassily
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
so I managed to fix the issue, and it was all about the path.
since
models
folder is in thepublic
folder, I should import it as./models/cube.gltf
not./public/models/cube.gltf