The Yankees’ future looks bright, but the team that stopped them from getting to the World Series and then won it all on Wednesday, the Astros, is set up pretty well and figures to be an obstacle for the next few seasons, at least.

No team has repeated since the Yankees won three straight from 1998-2000, but the Astros seem especially well-built for the future — and it starts with the infield.

As the Yankees hope Greg Bird can build on what he’s shown when healthy and that Gleyber Torres can fulfill his potential, the Astros already have four standout infielders in first baseman Yuli Gurriel, second baseman Jose Altuve, third baseman Alex Bregman and shortstop Carlos Correa.

Gurriel is signed through 2020 and Altuve — who may beat out Aaron Judge to win AL MVP this season — has affordable team options each of the next two seasons.

Bregman just completed his first full season and Correa, perhaps the most well-rounded of them all, is only now becoming arbitration-eligible.

So not only do the Astros have their infield set for the next few seasons, they won’t have to spend a fortune on them, either.

In the outfield, World Series MVP George Springer won’t be a free agent until 2021 and Marwin Gonzalez is set to return.

Josh Reddick, who had a mostly miserable postseason, was still one of the Astros’ most reliable offensive players during the regular season and is signed through 2020.

Brian McCann and Evan Gattis also will be back, with the Yankees still paying a portion of McCann’s salary next season.

As for the pitching staff, the rotation looks strong with Justin Verlander under contract for two more seasons — albeit expensive ones — and Dallas Keuchel and Charlie Morton both signed through next year.

Brad Peacock won’t be a free agent until 2021 and Lance McCullers Jr. 2022.

That leaves the bullpen, which clearly needs some work.

Will Harris, Ken Giles and Chris Devenski are all under team control for at least another three years.

Each struggled in the postseason — none more so than Giles, who lost his closer’s spot and then became a non-factor in the World Series.

But the Astros have shown a willingness to make bold moves, like acquiring McCann from the Yankees last year in exchange for two prospects, and will no doubt address the relief corps this offseason.

Their only key free agents, Carlos Beltran, Cameron Maybin, Luke Gregerson and Francisco Liriano, are all replaceable.