How can I render three.js server side? At the moment our website renders player avatars using three.js locally, however that issues security things as well as potential bugs wit
Check out this blog post. Its from a few years ago, but trying to solve a similar issue. Apparently there isn't an off-the-shelf solution yet.
Perhaps you could render it client-side as you are currently doing, but inside a hidden div, and then render the canvas to an image and display the image to the user? See here for an example.
There are several discussions about using three.js on node.js on the three.js GitHub page. Check for example:
There is also this question on stackoverflow which could be considered a duplicate of your question.
This one is dealing with a project called node-three.js on GitHub. It will support rendering in three.js on node.js. Not sure if it does exactly what you want (I have no first hand experience with this library) but worth checking it out I guess.