I have Astro v3 and trying to build using AWS amplify but it does not build and fail with below detail, updated build setting to node js v 18.14.1 but when build it gives error
# Starting phase: preBuild
2023-10-07T18:15:08.707Z [INFO]: # Executing command: npm ci
2023-10-07T18:15:08.708Z [WARNING]: node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node)
node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by node)
2023-10-07T18:15:08.709Z [ERROR]: !!! Build failed
2023-10-07T18:15:08.709Z [ERROR]: !!! Non-Zero Exit Code detected
2023-10-07T18:15:08.709Z [INFO]: # Starting environment caching...
2023-10-07T18:15:08.709Z [INFO]: # Environment caching completed
Terminating logging...
someone can help me how it can be solved. AWS amplify use build image Amazon Linux 2
I used Amazon Linux:2023 Image and for my live package updates I added a Node.js one and set it to 18.14.1.
This worked and has been my first time successfully hosting an astro site with this recent issue.