MILWAUKEE >> Mark Vientos hit a tiebreaking, two-run single during a five-run outburst in the fifth inning as the indefatigable New York Mets continued their thrilling week by beating the Milwaukee Brewers 8-4 in an NL Wild Card Series opener Tuesday.

The Mets didn’t earn a playoff berth until they rallied late from a three-run deficit to win the opening game of a makeup doubleheader in Atlanta on Monday, one day after the regular season was supposed to end.

Now they’re a win from heading to Philadelphia for an NL Division Series.

“I knew we were in a good spot when we boarded the plane,” manager Carlos Mendoza said. “We celebrated. We got out of the clubhouse in Atlanta, and you could tell right away our mentality was next day, next game.”

Since Major League Baseball went to the current postseason format in 2022 that features four best-of-three Wild Card Series, the Game 1 winner has gone on to advance in each of the eight series. Only one of those eight series even made it to a winner-take-all third game.

Milwaukee has lost 10 of its last 11 playoff games, a stretch that began with its Game 7 home defeat against the Los Angeles Dodgers in the 2018 NL Championship Series.

Jesse Winker and pinch-hitter J.D. Martinez each drove in two runs for the Mets. Winker, who batted .199 with a .567 OPS for the Brewers last year before bouncing back this season, drew a chorus of boos each time he came to the plate. He also appeared to exchange words with Milwaukee shortstop Willy Adames after hitting a two-run triple in the second.

Brice Turang went 3 for 4, Jackson Chourio was 2 for 4 and William Contreras had two RBIs for the Brewers. According to MLB.com, the 20-year-old Chourio was the youngest player to get two hits in his playoff debut.

NL Central champion Milwaukee had been 5-0 against the Mets this season before losing 5-0 to them in its regular-season finale Sunday.

That sent the Mets to Atlanta needing one win in the doubleheader to reach the postseason, and they clinched a spot by scoring all their runs in the final two innings of an 8-7 victory over the rival Braves.

New York was back on the field in Milwaukee again just 22 hours after the twin bill — and the Mets showed a similar tenacity Tuesday.

“It’s hard to be tired when you’re playing playoff baseball,” Vientos said. “I had a bunch of energy. I know all of us did. We were all excited, and we got the job done.”

After the Brewers took an early lead with two runs in the first inning, the Mets answered by scoring three times in the second. Once the Brewers pulled back ahead with two runs in the fourth, the Mets quickly responded again, this time with five runs in the fifth.

Milwaukee had just taken a 4-3 lead heading into the fifth when manager Pat Murphy removed Freddy Peralta, who had thrown 68 pitches and retired the last nine batters he faced, and turned to a relief corps that ranked second in the majors in bullpen ERA this season.

“It had been an emotional (68) pitches,” Murphy said. “What’s he got, 20 left? He’s usually between 83 and 90, is when he kind of loses a little bit on his fastball. I didn’t want (him) to face those guys three times around.”

The move backfired.

Starling Marte greeted Joel Payamps by hitting a drive that a leaping Chourio caught at the left-field wall. Tyrone Taylor then doubled to left on a flyball Chourio misjudged, allowing it to go off his glove.

With two on and two outs, Jose Iglesias hit a hard grounder that first baseman Rhys Hoskins snared. But Iglesias dove headfirst and beat Payamps to the bag for an infield single, with Taylor racing all the way home from second to tie the game.