This introduces a pre-build step on Next Build, which hides the files
in the app/api directory when the EXPORT_FRONTEND environment
variable is true-ish.
Hopefully there won't be disruption due to the post-processing step.
Also check https://github.com/vercel/next.js/issues/61213 for
upstream updates.