Open SerGio1414 opened 3 years ago
you can deploy this project using surge,if you are using vite js with three.js then first u need to run npm build,and after installing surge(its very easy to deploy webpage using it,tutorial is 2 minute video) you deploy the dist folder,so everything works fine https://surge.sh/
@jacobhq I loaded a stl file instead of creating one. It's loading correctly with localhost 'npx vite' but after building it with 'npx vite build' and 'npx vite preview'. The loaded stl file doesn't display. Do I need to update the path? I used the relative path in loading already. Any advice is appreciated.
Deploy to vercel, or use
npm run build
to generate a static build. Make sure to set your build commands tonpm run build
and your output directory todist
. You may need to change the paths of your texture images.