Skip to content
Discussion options

You must be logged in to vote

Thank you for sharing this issue with us!

Next.js natively only supports Node.js Serverless Functions. Those are the ones you place in pages/api.

If you want to write Serverless Functions in Node.js and Go, Next.js won't help there, unfortunately. You'd have to place the Serverless Functions inside the api (not pages/api) directory, which makes Vercel take care of them.

And yes, then you'd have to run vercel dev. You can read more about how to use Serverless Functions on Vercel here.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by leo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #15785 on August 02, 2020 08:26.