server-middleware build mode