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
posta 23 giorni fa204 visualizzazioni
1 Risposta
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
con risposta 20 giorni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande