Core Changes Apply react-server conditions to middleware: #65424 Credits Huge thanks to @huozhi for helping!