threejs-scroll-animation-demo icon indicating copy to clipboard operation
threejs-scroll-animation-demo copied to clipboard

How to make a deploy?

Open SerGio1414 opened this issue 3 years ago • 3 comments

SerGio1414 avatar May 31 '21 23:05 SerGio1414

Deploy to vercel, or use npm run build to generate a static build. Make sure to set your build commands to npm run build and your output directory to dist. You may need to change the paths of your texture images.

jacobhq avatar Jun 07 '21 11:06 jacobhq

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/

akuliakuli avatar Sep 01 '22 07:09 akuliakuli

@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.

young-oct avatar Mar 22 '24 15:03 young-oct