hoangvvo / next-connect

The TypeScript-ready, minimal router and middleware layer for Next.js, Micro, Vercel, or Node.js http/http2
https://www.npmjs.com/package/next-connect
MIT License
1.64k stars 65 forks source link

fix onNoMatch problematic example #174

Closed lamualfa closed 2 years ago

lamualfa commented 2 years ago

onNoMatch does not pass next args. but the next argument is used in the example.

codecov[bot] commented 2 years ago

Codecov Report

Merging #174 (640a072) into master (14aa547) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #174   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           81        81           
=========================================
  Hits            81        81           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 14aa547...640a072. Read the comment docs.

hoangvvo commented 2 years ago

Thanks!