Fixes the following error on vercel:
Invalid export found in module "/var/task/src/main.js".
The default export must be a function or server.
INIT_REPORT Init Duration: 868.45 ms Phase: init Status: error Error Type: Runtime.ExitError
Invalid export found in module "/var/task/src/main.js".
The default export must be a function or server.
INIT_REPORT Init Duration: 1501.21 ms Phase: invoke Status: error Error Type: Runtime.ExitError
Error: Runtime exited with error: exit status 1
Runtime.ExitError
This occurred probably due to vercel updating their node environments because it worked fine after some adjustment in code.
Fixes the following error on vercel: Invalid export found in module "/var/task/src/main.js". The default export must be a function or server. INIT_REPORT Init Duration: 868.45 ms Phase: init Status: error Error Type: Runtime.ExitError Invalid export found in module "/var/task/src/main.js". The default export must be a function or server. INIT_REPORT Init Duration: 1501.21 ms Phase: invoke Status: error Error Type: Runtime.ExitError Error: Runtime exited with error: exit status 1 Runtime.ExitError
This occurred probably due to vercel updating their node environments because it worked fine after some adjustment in code.