Deploying Next.js Apps to Local Debian Server

To deploy my Next.js app to my local Debian server while still having my domain point to it, I had to first enable port forwarding on my router. I forwarded 80 to 80 and 443 to 443. Don't do what some guides say and do 80 to 3000, I can't remember why, but I think it had something to do with nginx. I had to enable some ports through my ufw firewall, I don't really remember which. I think one was…