serverStarting the server

How do you start a CloudVoxel instance? What if it's for dev mode? Find everything here!

triangle-exclamation

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:

bun run build
circle-info

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:

bun run start

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 NGINXarrow-up-right to handle the HTTPS certification. You can find many tutorials online like this onearrow-up-right.

chevron-rightExample NGINX Confighashtag
circle-info

When using this example config, don't forget to change the client_max_body_size value to allow smaller or bigger file uploads!

Starting in development mode

After setting up .env.development, you can run your development server like this:

And you should see a little something like this and you can visit http://localhost:3000arrow-up-right to check out your app!

Last updated