diff --git a/api/_common/middleware.js b/api/_common/middleware.js index b6de8a2..b00f3b6 100644 --- a/api/_common/middleware.js +++ b/api/_common/middleware.js @@ -124,4 +124,8 @@ const commonMiddleware = (handler) => { return nativeMode ? vercelHandler : netlifyHandler; }; +if (PLATFORM === 'NETLIFY') { + module.exports = commonMiddleware; +} + export default commonMiddleware;