From d447b608f8998df5e044c40b45109ff6094ef173 Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Wed, 12 Feb 2025 00:28:19 -0500 Subject: manual URL creation --- 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 2c9557e..9aa736d 100644 --- a/src/components/ground.jsx +++ b/src/components/ground.jsx @@ -1,9 +1,10 @@ import { useRef } from 'react'; -import terrainModelURL from '../assets/terrain.glb?url' import * as everforest from '../_everforest.module.scss' import { RigidBody } from '@react-three/rapier'; import { useGLTF } from '@react-three/drei'; +const terrainModelURL = new URL('../assets/terrain.glb', import.meta.url).href + export default function Ground() { const meshRef = useRef(); const { nodes } = useGLTF(terrainModelURL); -- cgit v1.2.3