This could blow up in her face!

Hillary Clinton may have lit the fuse for her victory celebration a little too soon — by planning an Election Night explosion of fireworks over the Hudson River, The Post has learned.

Law enforcement officials and the FDNY have been told to prepare for a barge-launched pyrotechnic display off Manhattan’s Javits Center, where Clinton and running mate Tim Kaine will join their supporters for the Nov. 8 vote count, sources said.

The aerial detonations would last for two minutes, with the triumphal celebration permitted to start as early as 9:30 p.m. — a mere half-hour after the polls close in New York, sources said.

But the Democratic presidential nominee’s blueprint for lighting up the sky was sketched out before last week’s revelation that the FBI had revived its probe of her private email server scandal.

That move followed the discovery of a huge cache of emails that top aide Huma Abedin left on a laptop computer that her now-estranged hubby, Anthony Weiner, may have used to sext with an underage girl in North Carolina.

Republican rival Donald Trump has since surged in the polls, with the Real Clear Politics National Average showing him trailing by just 2.5 percentage points Monday.

The FDNY memo ordering its Marine 1 company to provide stand-by protection for the fireworks show was sent out Friday — the same day FBI Director James Comey alerted Congress that agents would check to see if the new emails contained any classified information.

The memo, obtained by The Post, also reveals that Clinton’s campaign hired Garden State Fireworks to put on the show — an ironic choice, as its resume includes the grand opening of the Trump National Golf Club in Bedminster, NJ.

Cops and firefighters were blown away by Clinton’s hubris in planning the fireworks display, which would eclipse the shower of blazing sparkles that preceded the balloon drop at July’s Democratic National Convention.

“It’s a little presumptuous of her to plan on winning. I guess she put in for this before Friday,” one NYPD detective said.

Others said the actual election results could put a damper on things, but one firefighter raised the specter of a 2000-style recount and added, “So what’s she going to do, put the fireworks on ice?”

Another source wondered: “If she loses, will she take it over to the East Side and sell it to Trump for half-price?”

A retired firefighter said the FDNY’ s “rank and file is outraged they are being forced to do political work.”

“This will make it seem like the firefighters endorsed Hillary,” the source said.

The only fire-related union to back a candidate is the Fire Marshals Benevolent Association, which endorsed Trump.

Meanwhile, the fact that both Clinton and Trump will hold Election Night events in New York City — marking the first such coincidence in modern history — is creating an unprecedented security challenge for law enforcement authorities, sources said.

In addition to protecting both candidates and their running mates, there are fears of violent clashes “breaking out in the streets” between supporters on either side.

“We’ve seen during the campaign that there have been fights at rallies across the country,” a law enforcement official noted.

Clinton’s campaign didn’t respond to requests for comment.

Additional reporting by Carl Campanile