Updates all API functions, to work on both Vercel & Netlify
This commit is contained in:
@@ -86,4 +86,5 @@ const errorResponse = (message, statusCode = 444) => {
|
||||
};
|
||||
};
|
||||
|
||||
exports.handler = middleware(handler);
|
||||
module.exports = middleware(handler);
|
||||
module.exports.handler = middleware(handler);
|
||||
|
||||
Reference in New Issue
Block a user