Build error on API function with rebuild

Glad you got the build working!

We have a few threads related to this issue, but two that I recommend starting with are this Support Guide and this page not found while using Nextjs. I recommend starting with the Support Guide first!

Once you follow those steps, let us know if it is working!