Nutlope / twitterbio

Generate your Twitter bio with Mixtral and GPT-3.5.
https://www.twitterbio.io
MIT License
1.66k stars 465 forks source link

error - Provided runtime "edge" is not supported. Please leave it empty or choose one of: experimental-edge, nodejs #19

Closed akdeb closed 1 year ago

akdeb commented 1 year ago

Do you know how to fix this error: "error - Provided runtime "edge" is not supported. Please leave it empty or choose one of: experimental-edge, nodejs"?

I see this on my server and I am on Next.js v12.3.0. My route is defined in pages/api/*

dvaJi commented 1 year ago

The error is because you are using Next.js 12 and the runtime "edge" is experimental in that version. To resolve the issue, you can upgrade to Next.js 13 or modify the runtime "edge" (in pages/api/generate.ts) to "experimental-edge".

akdeb commented 1 year ago

That fixed it thanks @dvaJi! 🚀