Fixed middleware: should build all targets for `/` pathname