Keep webhooks registered after server restart

First of all, I’m using Remix to make my app. The problem is that the webhooks work as you’d expect them to right after the app has been installed, but if you shut down the server and re-start it, the webhooks doesn’t work. I’ve gathered that I need to re-register the webhooks, but I don’t understand how. I’ve set up the webhooks in the same way as the guy in this tutorial: https://www.youtube.com/watch?v=35JElCKQHdg&ab_channel=L4Webdesign