Wrote a Blog Post
I wrote a blog post showing how you can implement the WebFinger Protocol for Mastodon on a NextJS site.

https://robearlam.com/blog/webfinger-on-nextjs