You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Thanks for the report. I'd be happy to support the edge runtime. Finding a way to remove the fs dependency sounds like a good thing to me. We don't need it. I have no idea (without researching) why bodyparser depends on it.
Hi,
I love this library, very nifty :)
This issue may be too early for you to consider, but next-runtime does not work with a NextJS page using the
experimental-edge
runtime. https://nextjs.org/docs/advanced-features/react-18/switchable-runtime#page-runtime-optionSpecific error message when building:
It looks like
body-parser
has a hard dependency onfs
for some reason, and file-system activity is not available in Edge functions.You only use
body-parser
in one place, here: https://github.com/smeijer/next-runtime/blob/main/src/runtime/body-parser.ts#L104Possible fixes:
body-parser
from1.19.0
to1.20.0
(I don't think this will work)json
from'body-parser
(might not actually shake out thefs
usage)Thanks for all your work here
The text was updated successfully, but these errors were encountered: