Skip to content

Commit

Permalink
Get rid of semver from the server bundle (vercel#57321)
Browse files Browse the repository at this point in the history
This is a 6.6kB (gzipped) win for the Node.js worker size baseline. `jsonwebtoken` uses semver to ensure that the Node.js version is larger than `16.9.0` (which is always true with Next.js) so we can just alias it to be a noop function that returns `true`.
  • Loading branch information
shuding authored Oct 24, 2023
1 parent 8734a03 commit 7aef93d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
Loading

0 comments on commit 7aef93d

Please sign in to comment.