NextJS 앱을 로컬호스트에서 https 로 서빙하기개발중인 next.js 앱을 로컬환경에서 https 로 서빙해야할 경우가 있다. (인스타그램 콜백이라던지) 대충 찾아봤는데 좀 이상한 방법들로 알려주는게 많은거 같다. mkcert 나 express.js 를 쓰면 next.js 를 typescript 로 개발하는 입장에서는 빌드를 계속해야해서 엄청 불편하고, ngrok 은 뭔가 외부 트래픽을 타니깐 좀 꺼려진다.https://haandol.github.io/2021/07/26/serve-nextjs-app-on-localhost-via-https-using-caddy.html리버스프록시이용brew install caddynpm run devcaddy reverse-proxy --from localhost:3030 --to localhost:3000https://localhost:3030 로 접속하면된다.Caddy 2 - The Ultimate Server with Automatic HTTPSCaddy is both a flexible, efficient static file server and a powerful, scalable reverse proxy. Use it to serve your static site with compression, template evaluation, Markdown rendering, and more. Or use it as a dynamic reverse proxy to any number of backends, complete with active and passive health checks, load balancing, circuit breaking, caching, and more.https://caddyserver.com/