From ba8880cff704e63e204f3bb0ea9c777f0844b0ae Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Tue, 18 Jun 2024 22:07:27 +0100 Subject: [PATCH] feat: Add old-school export option for Netlify --- api/_common/middleware.js | 4 ++++ 1 file changed, 4 insertions(+) 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;