From acf41b45c3345dd8fa12e013b313afdfb0138a6d Mon Sep 17 00:00:00 2001
From: Silas Bartha <silas@exvacuum.dev>
Date: Tue, 11 Feb 2025 23:14:22 -0500
Subject: properly import assets

---
 src/components/ground.jsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/components/ground.jsx')

diff --git a/src/components/ground.jsx b/src/components/ground.jsx
index cc128de..c83aad8 100644
--- a/src/components/ground.jsx
+++ b/src/components/ground.jsx
@@ -1,11 +1,12 @@
 import { useRef } from 'react';
+import terrainModelURL from '../../assets/terrain.glb'
 import * as everforest from '../_everforest.module.scss'
 import { RigidBody } from '@react-three/rapier';
 import { useGLTF } from '@react-three/drei';
 
 export default function Ground() {
     const meshRef = useRef();
-    const { nodes } = useGLTF('../assets/terrain.glb');
+    const { nodes } = useGLTF(terrainModelURL);
     
     return (
         <RigidBody type='fixed' colliders="trimesh">
-- 
cgit v1.2.3

