Oct 19, 2022 • 4 min read

Introducing: Highlight's Next.js Integration

Author picture of Jay Khatri
Jay Khatri
Co-founder, Hype-man & CEO

We’re excited to introduce Highlight's Next.js Integration—a powerful set of features that supercharges your Highlight experience as a Next.js user.

Building for Next.js

Next.js is a React framework that lets you build server-side rendering and static web applications using React. It's one of the most popular React frameworks, and it's used by companies like Airbnb, Amazon, and Microsoft!

A large percentage of Highlight users have built their apps with Next, so we figured it was time we help those teams out 🙂. With this integration, our goal is to make it easier for Next.js users to make the most of Highlight to monitor their whole stack; both their frontend and backend!

Full-stack monitoring

Highlight's Next.js Integration is a set of features that makes it easier than ever to get the most out of Highlight to monitor your entire application.

Add just a few lines of code to your Next.js app to unlock the Highlight features you love, including session replay, error monitoring, full-stack network request recording, and more!

pic1.png

Automatic source map enhancement

The Next.js Integration also automates the uploading of source maps, giving you nicer, more readable stack traces. We do this by providing a wrapper for your next.config.js file that makes it simple to configure your Next.js app for Highlight.

pic2.png

Get past ad blockers

Using this same Highlight wrapper in your next.config.js file, we also help you capture more user sessions by avoiding ad blockers. By proxying highlight requests via `withHighlightConfig` (link), they are routed through YOUR backend instead of going straight to Highlight.

How do I get started?

First, set up the Next.js SDK by following the instructions in the Highlight docs to get up and running. This is all you'll need to get full-stack errors alongside session replay for your Next.js app.

As an additional step, if your Next app is hosted on Vercel, you also can enable the Next.js Integration on Vercel (see the Vercel Integrations page) to automatically send sourcemaps to Highlight!

Comments (0)
Name
Email
Your Message

Other articles you may like

The 4 Best Frameworks for Robust Logging in Java
Highlight Pod #7: Pipe.com co-founder Zain Allarahkia
Day 4: Cohesion
Try Highlight Today

Get the visibility you need