- Newest
- Most votes
- Most comments
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/
Relevant content
- asked 2 years ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago