Open export-mike opened 1 year ago
This will block the server responding from other requests, shouldn't this be using the async equivalent apis from fs?
await util.promisify(fs.readFile)(filepath) https://github.com/expo/custom-expo-updates-server/blob/main/expo-updates-server/pages/api/assets.ts#LL63C22-L63C34
await util.promisify(fs.readFile)(filepath)
This will block the server responding from other requests, shouldn't this be using the async equivalent apis from fs?
await util.promisify(fs.readFile)(filepath)
https://github.com/expo/custom-expo-updates-server/blob/main/expo-updates-server/pages/api/assets.ts#LL63C22-L63C34