[Next.js] Edge Runtime not behaving correctly
Zn4rK opened this issue · 0 comments
Zn4rK commented
Using Navita imports directly inside routes that has
export const runtime = 'edge';
Causes the compiler to hang.
I can't remember the details of the Next.js implementation completely, but it might be caused by this line:
https://github.com/vercel/next.js/blob/f3132354285fb18c290bf9aad7f8dc7e0550105d/packages/next/src/build/webpack/plugins/flight-client-entry-plugin.ts#L614
Needs investigation and replication.
Lines in Navita that we need to look into:
navita/packages/next-plugin/src/index.ts
Lines 60 to 78 in 9e4ac18