AWS Serverless Lambdas support for Nextjs 13

0

We have 150+ Serverless Lambdas currently which are using Next.js 10. We want to upgrade Next.js 13. However, this version is no more supported by Serverless Lambdas. Need suggestions on how to resolve this issue and still stay serverless.

GJ
질문됨 24일 전205회 조회
1개 답변
0

Hello,

I understand that you wish to upgrade from Next JS 10 to Next JS 13. You wish to know the alternatives to upgrade as Next JS 13 is not supported by Serverless Lambdas.

Kindly note that, Next JS previously supported Serverless deployment mode. Please check this NextJS docs [1] for more information.

I also found the GitHub issues [2] & [3] highlighting the same.

As a work around, you can deploy a NextJS application to AWS Lambda using custom runtimes and AWS Lambda Web Adapter.

-> via AWS SAM - https://towardsserverless.com/articles/deploy-nextjs-to-aws-lambda-using-aws-sam

-> via ZIP or Docker - https://medium.com/@jake-smith/deploy-next-js-v13-x-to-aws-lambda-using-aws-lambda-web-adapter-dd5308d75848

Alternatively, I also found this AWS blog post[4] which describes using Amplify instead of AWS Lambda to deploy a NextJS 13 app.

The above links are provided on a best-effort-basis and AWS does not endorse third-party links. I would advise you to thoroughly test the suggestions before implementing them in your production environment.

Thank you!


References

[1] - https://nextjs.org/docs/pages/building-your-application/upgrading/version-13

[2] - https://github.com/serverless-nextjs/serverless-next.js/issues/2607

[3] - https://github.com/serverless-nextjs/serverless-next.js/issues/2497

[4] - https://aws.amazon.com/blogs/mobile/amplify-next-js-13/

AWS
답변함 21일 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠