GLTF2Export and how it works on browser side is pretty much it creates an anchor () element and initiates download. So pretty much it’s doing this
But this means that the function interacts with DOM, which on server side is not available. So I don’t think you can use that approach on server side. I had similar issue lately, and you can check out here how I solved it.