Is nodejs needed to publish into the custom domains?

There are alternatives to Obsidian Publish that you can self-host.
The video you linked shows one of those alternatives.
Here is a list of some of those alternatives: Obsidian Publish alternatives

The instructions for using a custom domain with Obsidian Publish are here: Set up a custom domain - Obsidian Help