- 01
Added export const runtime = 'edge' to an API route for lower latency
Module not found: Can't resolve 'fs'
- 02
Added a webpack fallback of fs: false in next.config
Build passed, runtime crashed: the edge runtime does not support Node.js 'fs' module
- 03
Replaced the import with a dynamic import inside the handler
Same runtime error on the first request. Sent a mayday