Closed TudorZgimbau closed 1 year ago
After a first look, it seems like multiple packages fail to run in the edge environment. Moving this to low priority since I believe the compatibility issues will be impossible to work around at the moment.
https://github.com/Bytecrowds/main/tree/Edge would make the authorize
API route use the edge runtime. The others seem impossible to convert because of the dependencies.
IMO, this will be a downgrade in terms of performance: we wouldn't be able to reuse connections because "https" from Node is not supported and would require a global database for the edge route to make sense. All the other functions being located in FRA1
, I believe this will slow down most of the API.
Closing until all dependencies add edge support.
Asses whether we can use Vercel's edge functions and refactor the API to use them.