Comment by Sreekesh Iyer on "I'm Jason Lengstorf. I host a live pair programming show called Learn With Jason, I'm the VP of Developer Experience at Netlify. AMA!" | Hashnode
How does Netlify handle the Next.js API routes which are converted to serverless functions? Is it possible for us to change the location of these serverless functions?
How does Netlify handle Next.js middleware? (functions written in _middleware files)
Netlify handles Next.js API routes the same as other routes, so they don't generate different serverless functions. if you want to customize your serverless functions, you can put them in netlify/functions/whatever-you-want.js
to mimic the /api/* pattern, you can add this to your netlify.toml: