Oct 19, 2022 • 4 min read
Introducing: Highlight's Next.js Integration
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!
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!
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.
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!
Other articles you may like
Apr 20, 2023 • 7 min. read
Oct 1, 2022 • 8 min. read
Jan 9, 2023 • 8 min. read