For much of the offseason, it seemed like Miguel Andujar was on his way to being the starting third baseman in The Bronx.

Instead, a spring training trade brought Brandon Drury to the Yankees and suddenly, Andujar was no longer the third baseman of the present — or maybe even the future.

But with Drury out with migraines and blurred vision since April 7, Andujar has been given a second chance. Lately, he’s made the most of it.

Andujar’s three-run double to left-center broke open the Yankees’ 9-1 win over Toronto on Saturday and ended Marcus Stroman’s day. And it showed again why the Yankees think so highly of the 23-year-old, who has an extra-base hit in each of his past five games.

During that stretch, Andujar is 9-for-20 with six runs, five doubles, a triple and two homers and has six RBIs.

Though Gleyber Torres’ recent stretch at third for Triple-A Scranton/Wilkes-Barre led some to speculate that he could bump Andujar, Torres has played the past few games back at second, and was called up to the Yankees on Saturday.

While Neil Walker and Tyler Wade continue to struggle, Andujar has become among the Yankees’ hottest hitters.

Drury’s potential return would complicate Andujar’s situation, but for now, he’s become a significant part of the lineup — and that’s all he’s thinking about.

“I don’t worry about that stuff,’’ Andujar said through an interpreter. “I can’t fill my mind with things like that. I’m just staying ready to play when the opportunity comes. The only thing I can control is the way I play.”

Andujar attributed the improvement at the plate to recent conversations with hitting coach Marcus Thames, who told him not to be as anxious.

His defense at third has been better in recent games and his approach at the plate continues to impress Aaron Boone.

“Even when he’s walking up to hit, he’s got a little bit of that swagger back,” the manager said. “He’s starting to feel confident and comfortable. That’s a big-time at-bat off Stroman there, especially getting to two strikes.”

And Boone believes there’s an explanation for Andujar’s improved results — and it’s not about sending a message.

“I think it’s because he can hit,’’ Boone said. “I think he’s a good hitter that’s just gaining some traction and getting a little more comfortable.”