honeybadger-io / honeybadger-webpack

A webpack plugin to send sourcemaps to Honeybadger
MIT License
29 stars 7 forks source link

What is correct approach to upload sourcemaps with next.js 11.1.2? #323

Closed JustFly1984 closed 3 years ago

JustFly1984 commented 3 years ago

Currently I'm updating next.js app, and I see that we have an integration in next.config.js by leveraging @zeit/next-source-maps@0.0.8 I've looked at https://www.npmjs.com/package/@zeit/next-source-maps and it is deprecated, in favor of now native next.js source map support: https://nextjs.org/docs/advanced-features/source-maps

Do you have an example on how to integrate source map upload with current version of nextjs?

JustFly1984 commented 3 years ago

I've found an example https://github.com/honeybadger-io/nextjs-with-honeybadger/blob/master/next.config.js

I just get rid of @zeit/next-source-maps@0.0.8 and followed this one instead