Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change runtime node.js version in next.js SSR #3757

Closed
4 tasks done
ArianHamdi opened this issue Oct 12, 2023 · 5 comments
Closed
4 tasks done

How to change runtime node.js version in next.js SSR #3757

ArianHamdi opened this issue Oct 12, 2023 · 5 comments
Labels
archived This issue has been locked. question Further information is requested

Comments

@ArianHamdi
Copy link

Before opening, please confirm:

App Id

d3akk1nl18rszx

AWS Region

us-east-1

Amplify Hosting feature

Build settings, Custom build image

Question

I changed the Node.js version in the build settings for both Amazon Linux 2 and a custom build image. In both cases, I successfully changed the build Node.js version. However, when I checked the logs in CloudWatch, it showed that the Lambda function was running with Node.js 16 instead of 18, which I had set in the build settings.

How can I change the runtime version to 18 for Lambda?

@ArianHamdi ArianHamdi added the question Further information is requested label Oct 12, 2023
@gangeshwark
Copy link

I am facing the same issue with NextJS 14. Next JS 14 drops support for Node 16 and requires at least Node v18.17 - https://nextjs.org/blog/next-14
This means Amplify can not run Nextjs 14 until the lambda environment is upgraded.

Is there a timeline on when Node 18.17 will be supported? Thanks!

@CoDanny
Copy link

CoDanny commented Oct 28, 2023

It's being worked on according to: #3773

@siegerts
Copy link
Contributor

siegerts commented Nov 3, 2023

Hi @ArianHamdi and @gangeshwark , please see my comment here #3773 (comment) . Closing this to track the ongoing conversation in one place.

@siegerts siegerts closed this as completed Nov 3, 2023
Copy link

github-actions bot commented Nov 3, 2023

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Copy link

github-actions bot commented Nov 3, 2023

This issue has been automatically locked.

@github-actions github-actions bot added the archived This issue has been locked. label Nov 3, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Nov 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived This issue has been locked. question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants