Before being laid on the seabed the pipes are welded and sealed on the pipelay vessel.
Reference(s) for the image and text, is owned by Nord Stream AG