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
質問済み 1ヶ月前228ビュー
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
回答済み 1ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ