diff --git a/components/ui/ModelViewer.tsx b/components/ui/ModelViewer.tsx index 669e7ef..1e3eb85 100644 --- a/components/ui/ModelViewer.tsx +++ b/components/ui/ModelViewer.tsx @@ -12,7 +12,7 @@ export const ModelViewer: React.FC = () => { dracoLoader.setDecoderPath('/draco/'); // Path to Draco decoder files gltfLoader.setDRACOLoader(dracoLoader); - const myModel = useLoader(GLTFLoader, '/rover.gltf', loader => { + const myModel = useLoader(GLTFLoader, `${process.env.basePath}/rover.gltf`, loader => { loader.setDRACOLoader(dracoLoader); });