anonymouscatcher
anonymouscatcher
@chimurai Here you go, https://github.com/alirezavlz/next-proxy-issue run the app on dev mode and run the server.js, you will see that get request is working but post request doesn't work. it stucks...
@chimurai could you have a look to repo? :)
Yeah it’s so weird I’m not sure it’s an issue of next js or this library, but if I create the proxy externally it will work fine. (Not in the...
I have tested the same logic with https://github.com/http-party/node-http-proxy and it worked correctly. so I think the issue should be with http-proxy-middleware.
@chimurai I'm currently using this version of node-http-proxy which is for next js. but It uses that in top of that. https://github.com/stegano/next-http-proxy-middleware ```js const proxy = (req, res) => {...
After investigation it seems `node_modules` is not part of the .zip file, is there any solution to force include node_modules in the app with having `nextDistDir`?
I ran test with cloud front ab test, and this is the log: ```json { "errorType": "Error", "errorMessage": "Cannot find module './chunks/../commons.js'\nRequire stack:\n- /var/task/webpack-runtime.js\n- /var/task/pages/_error.js\n- /var/task/default-handler-0a0dc009.js\n- /var/task/index.js\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js", "trace":...
Same issue here! after using serverless component for 1 year I just reached 1000 roles :D this is crazy
@dphang @danielcondemarin