The end is here. After seven seasons and 136 episodes, the final “30 Rock” airs this Thursday. While Tina Fey’s Liz Lemon and friends have often confined their antics to the interior of the titular 30 Rockefeller Plaza, the show, which shoots in NYC, has mined the city for humor with its use of real-life locations all over the city — and in Hoboken for a sandwich.

There were perils associated with shooting on location, however. “Pedestrians will angrily walk through your shot because if they don’t get to Dean & DeLuca immediately, the American economy will collapse,” says the show’s executive producer, Robert Carlock. “Nothing beats really being in New York . . . the visual joys are well documented.”

To toast the show’s memorable moments, take The Post’s “30 Rock” tour of New York.

SEASON 1

1. GE Building 30 Rockefeller Plaza

This historic building is the central hub of Rockefeller Center, where much of the action takes place. Like the real-world NBC, the NBC of “30 Rock” has its headquarters here. You can tour the actual NBC studios ($24; nbcstudiotour.com) where shows like “Saturday Night Live” shoot, or head to Top of the Rock for a 360-degree view of the city ($25, topoftherocknyc.com).

2. Silvercup Studios

42-22 22nd St., Long Island City

Jump on the 7 train to this Queens studio for a view of the expansive spot where nearly all of the interiors of 30 Rockefeller Plaza were actually shot, although assistant locations manager Ryan Scatenato notes that they would occasionally film in the lobby of the actual Rockefeller Center building. (Silvercup Studios doesn’t offer tours.)

3. Show Palace strip club

42-50 21st St., Long Island City; 718-937-6969

Feeling risqué? Check out this gentlemen’s club, just as Liz Lemon did in the series premiere. It’s where she is forced to bond with the temperamental male movie star Tracy Jordan (Tracy Morgan), whom new network exec Jack Donaghy (Alec Baldwin) insists she hire. While in the show, it’s a fictional Bronx strip club called Dark Sensations, the location is actually in Queens near Silvercup. “We have shot . . . [in] at least four different strip clubs,” says Carlock.

4. Café des Artistes (now the Leopard at des Artistes)

1 W. 67th St.; 212-787-8767

Marvel at the colorful wall murals of forest nymphs that decorate this tony spot, where Jack sent Liz on a blind date with another woman after he assumes from her “bi-curious” footwear that she is a lesbian. The original Café des Artistes closed in 2009, but it reopened as the Leopard at des Artistes in 2011. The fabled murals remain.

5. Margon

136 W. 46th St.; 212-354-5013

Grab a Cubano sandwich ($9 with sides) at this beloved lunch spot. It’s featured in the show when, at his attorney’s suggestion, Tracy looks to join a church and convinces Kenneth the page (Jack McBrayer) to take him to Kenneth’s house of worship. Naturally, the fictional church is accessed by going through the restaurant and down several flights of stairs.

6. Christie’s

20 Rockefeller Plaza; 212-636-2000

Admire the art coming up for sale at this famed auction house, just as Jack did when he bought an equestrian painting with the help of Phoebe (Emily Mortimer), a beautiful but extremely delicate art dealer he takes a liking to. Exhibitions for the general public change every few days — see Renaissance art this weekend — and hours vary (free, christies.com).

SEASON 2

7. Fiore’s Deli

414 Adams St., Hoboken, NJ; 201-659-1655

Take the PATH train to Hoboken and have one of the sandwiches at the heart of the “Sandwich Day” episode, which revolves around a mystical, secret deli where the teamsters get amazing subs. This 100-year-old, family-owned Jersey spot, where the “30 Rock” teamsters regularly ordered from, is reportedly the inspiration. “I actually made one of Tina Fey’s first sandwiches here,” says Larry Lagman, who has worked behind the counter for a decade and recalls making Fey an Italian combo sandwich with sopressata, peppered ham, mozzarella, roasted garlic and peppers ($14).

SEASON 3

8. Brooklyn Bridge

Attempt a romantic moment on this 1-mile-plus bridge, just as Liz and a 4-foot-5 romantic interest named Stewart (Peter Dinklage) did. In a move from the “Sex and the City” playbook, they decide they’ll meet each other there on a specific date and time if they want to make a go of it. They both show up, but a baby-crazy Liz first mistakes a young boy for Stewart, ruining any potential romance.

9. Prospect Park

Enjoy a family gathering in this Brooklyn park. Jack does, when, fearful he might have testicular cancer, he uncharacteristically leaves Manhattan to stop by the family gathering of his mother’s buxom Latina caretaker, Elisa (Salma Hayek). After having a great time, Jack realizes he’s in love with Elisa.

10. Serendipity 3

225 E. 60th St.; 212-838-3531

Try the $1,000 “Grand Opulence Sundae” (left) with truffles and 23-karat edible gold leaf at this institution. Jack has reservations to take Elisa (Hayek) to do just that on Valentine’s Day — at a fictional restaurant Plunder with a $1,000 dessert named the “Lover’s Delight” — but they miss their seating and go to McDonald’s for McFlurries.

11. 160 Riverside Drive

Swing by Liz’s tony, prewar Upper West Side apartment building that becomes even more desirable when a handsome neighbor, Dr. Drew Baird (Jon Hamm), moves in across the hall. Maybe such fictional amenities are why a two-bedroom in the actual building recently fetched $2.86 million. The actual interiors of Liz’s apartment, however, were shot at Silvercup Studios.

SEASON 4

12. Heartland Brewery

127 W. 43rd St.; 646-366-0235

Watch what you eat at this chain pub. Liz’s love from the first season, Floyd (Jason Sudeikis), gets drunk on three orders of Jack Daniel’s-laced salmon here, while telling her he’s marrying a blond yoga instructor. Sadly, no such dish is on the menu, so you can try the Buffalo chicken spring rolls ($9.90) instead.

SEASON 5

13. Brooklyn Industries

Locations throughout Brooklyn and Manhattan, brooklynindustries.com

Pick up some quasi-trendy duds at this local chain store. Liz finds a pair of jeans at a very similar store called “Brooklyn Without Limits” while shopping with Jenna (Jane Krakowski). The jeans make her butt look amazing, but she’s conflicted when finds out the supposedly environmentally friendly boutique is actually owned by Halliburton.

14. American Museum of Natural History

200 Central Park West; 212-769-5100

Indulge your love of marine biology with a stroll around the Hall of Ocean Life at the grand museum (suggested donation $19; amnh.org). Jack tries to do that for his boss’ precocious granddaughter Kaylie (Chloë Grace Moretz) in an attempt to get her to pursue an oceanic career in lieu of joining the family business.

SEASON 6

15. Benihana

47 W. 56th St.; 212-581-0930

Have a teppanyaki bonanza! Tracy, Kenneth and crew do on a Leap Day episode where they find a $50,000 Benihana gift card that must be used by the end of the month. Actor Tracy Morgan is a vocal fan of the Japanese chain and had long begged Fey to make it part of the “30 Rock” story line.

SEASON 7

16. Central Park

Take a ride in a horse-drawn carriage — or don’t. Jack’s harpy mother Colleen (Elaine Stritch) dies of a heart attack in one. Just before she goes, she tells Jack she only wants him to be happy, which he interprets as “one last twist of the knife.”

17. City Hall Marriage Bureau

141 Worth St.

Gawk at the brides and the chaotic scene at City Hall. Liz and beau Criss (James Marsden) do when they get married to make adopting a baby easier. Initially, Liz insists they don’t make a fuss, but in the end she realizes her true feelings and dons a white gown, albeit a Princess Leia costume.