Create an API Route Using the next-connect Package

Share this video with your friends

Send Tweet

We'll learn an alternative way of creating API routes using the next-connect package. next-connect gives us an alternative that would feel familiar to anyone that has worked with Express in the past.

  • https://github.com/hoangvvo/next-connect
Carlos Pires
~ 2 years ago

The package has to be imported first: yarn add next-connect if you are using yarn or npm i next-connect if you are uing npm.