How do you start a CloudVoxel instance? What if it's for dev mode? Find everything here!
Documentation for this part is not written yet. Coming soon!
Starting for production
This is probably what you are looking for! After setting up your configuration and your .env.production, you can start your instance for production!
Here's how it works: you first have to build the code —this is a required step to optimize and make everything ready— and then start it. Here's how:
bunrunbuild
You'll have to re-build for each change you make to the code. If you want to change the code a lot, consider using Starting in development mode.
And now, like every other time you want to start the instance, run the start command:
bunrunstart
And it should look like this:
$ next start▲ Next.js 15.1.6 - Local:http://localhost:3000 - Network:http://[your local network IP]:3000✓ Starting...✓ Ready in 202ms
This is great! Your instance is now accessible on your network! But what if you want it to be available from the whole internet?
An oversimplified representation of the "network structure" of CloudVoxel.
CloudVoxel does not support HTTPS built-in because NextJS doesn't. You'll have to use a reverse proxy such as NGINX to handle the HTTPS certification. You can find many tutorials online like this one.