Next.js middleware fails to execute after Vercel CLI 50.28.0 build regression

The issue is not about CLI 50.28.0.

This deployment work fine, pls check the log.

Running build in Washington, D.C., USA (East) – iad1
Build machine configuration: 2 cores, 8 GB
Cloning github.com/RCFans/StrategyLogic (Branch: main, Commit: 8a6fc5f)
Cloning completed: 1.806s
Restored build cache from previous deployment (DQrH1rmBSHDcQhpyaYjNHWWAEPRd)
Running "vercel build"
Vercel CLI 50.28.0
Detected `pnpm-lock.yaml` 9 which may be generated by pnpm@9.x or pnpm@10.x
Using pnpm@9.x based on project creation date

deployment link is below, if you can visit.

https://vercel.com/strategylogic/platform/4kzdVAaqeMz4cs7tWMD414fsGnAh