Closed samgates3 closed 6 months ago
This has been identified as a feature request. If this feature is important to you, we strongly encourage you to give a 👍 reaction on the request. This helps us prioritize new features most important to you. Thank you!
I was finally able to find a solution that worked on discord.
The platform was set to WEB_DYNAMIC somehow.
Using aws cli command: aws amplify update-app <APP_ID> --platform WEB --region <REGION>
to set the platform to WEB. Then redeployed and everything worked as it did previously.
I don't know if the platform had always been set to WEB_DYNAMIC or WEB, but I did recently add a new branch for a migration to use NextJS and deployed that (it failed, likely because I will have to migrate to use the newer WEB_COMPUTE platform but that will be an issue for another day) and I wonder if that caused the platform to change if it changed at all?
This issue is now closed. 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.
This issue has been automatically locked.
Before opening, please confirm:
Amplify Hosting feature
Build settings, Deployments
Is your feature request related to a problem? Please describe:
For a React 18 app
Build fails at the deploy phase, giving the Build artifacts not found error. I had not made any changes to build settings before this issue and have since tried a number of variations I have seen others use from other issues for the baseDirectory path including:
build /build ./build /app-name/build ./app-name/build
all give the same error.
Here are my build settings:
Default build image
I have also used
- ls
command after the build to confirm the build directory is created and all the files are thereDescribe how you'd like this feature to work
I'd like to see what changes I can make to get this issue resolved.