Skip to content

Commit

Permalink
fix: nextjs version comparison (#1415)
Browse files Browse the repository at this point in the history
Co-authored-by: Pangratios Cosma <[email protected]>
  • Loading branch information
phikes and subzero10 authored Dec 7, 2024
1 parent ed432bc commit 62684da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nextjs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function addServerExternalPackagesOption(config) {

const nextJsVersion = getNextJsVersionInstalled();
if (nextJsVersion) {
if (+nextJsVersion[0] >= 14 && +nextJsVersion[1] >= 3) {
if ((+nextJsVersion[0] === 14 && +nextJsVersion[1] >= 3) || +nextJsVersion[0] > 14) {
log('debug', 'adding serverExternalPackages option with value ["@honeybadger-io/js"]')
config.serverExternalPackages = ['@honeybadger-io/js']
}
Expand Down

0 comments on commit 62684da

Please sign in to comment.