500 Internal server error on Nextjs/Sanity project

My website at the URL below has a 500 Internal Server Error even though the build is successful. Please take a look and let me know what is happening.

  • sitename: city-of-templeton.netlify.app
  • error message: 500 Internal server error
  • there was no issue with the build/deploy, everything shows “successful” Netlify

@duc-bsc The build log is only displays the results of your build.

You’re using Next, and the 500: Internal Server Error will be occurring at runtime.

Check your function logs:

We no longer provide technical support for Next.js 12 and Runtime v4. Please upgrade your project.