Open gallirohik opened 1 month ago
Hey! v14 of Next is not supported unfornatelly. Moreover, with #97, I do not plan to fix it. I would encourage you to switch to OpenNext or https://github.com/awslabs/aws-lambda-web-adapter (you can also check out https://github.com/sladg/lambda-server-adapter/blob/master/examples/Next.md for minimalistic and probably more universal PoC I did on this topic)
Hi Team,
We’ve been successfully using
sladg/nextjs-lambda
for building our pages router, and it has been working as expected.Recently, we upgraded to Next.js 14 and started implementing the app router. While we were able to render server components without any issues, we encountered a problem with the route handlers. Specifically, we are receiving a 502 response when trying to access them.
Static assets are deployed into s3, server.js is on lamda function.
Note : we are using cloudfront to as an origin.
File structure :Below is our build configuration for your reference:
build.sh