Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make a deploy? #4

Open
SerGio1414 opened this issue May 31, 2021 · 3 comments
Open

How to make a deploy? #4

SerGio1414 opened this issue May 31, 2021 · 3 comments

Comments

@SerGio1414
Copy link

No description provided.

@jacobhq
Copy link

jacobhq commented Jun 7, 2021

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.

@akuliakuli
Copy link

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/

@young-oct
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants