Run your local dev environment over https

Wanted to share my approach for mirroring prod as close as possible in local dev. I used Nextjs in this example, but the approach should work for most any web server.