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
The script uses fs mainly to check for android-related binaries, which are not relevant in these edge function environments. Is there a way to remove that from the generated index.js? I'm trying to avoid having to edit the file.
The text was updated successfully, but these errors were encountered:
Some edge runtimes only have a limited number of node APIs available.
For example, vercel's runtime does not have the
fs
API:https://nextjs.org/docs/app/api-reference/edge#unsupported-apis
I noticed the index.js script generated by the template napi-rs project has a require('fs') which crashes in these runtimes:
The script uses
fs
mainly to check for android-related binaries, which are not relevant in these edge function environments. Is there a way to remove that from the generated index.js? I'm trying to avoid having to edit the file.The text was updated successfully, but these errors were encountered: