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
已提问 23 天前204 查看次数
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
已回答 20 天前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则