I've been trying to get a pages deploy to work, but the deploys are failing with the error:
Failed to publish your Function. Got error: Unknown internal error occurred.
Failed to publish your Function. Got error: Unknown internal error occurred.
...which is unfortunately not very useful.
It's a small next-on-pages app that I scaffolded yesterday. The deploys started failing after I tried to set up middleware. The build I'm trying to deploy runs locally.