AWS Amplify Build Settings


Using Amplify I’m having difficulty deploying a React application which I believe is due to the build settings.
When trying to deploy the default build settings provided are shown below:
aws build settings

I know this is incorrect and the error I find in the build logs is:

The deploy is successful except when I launch the application I receive an ERR_TOO_MANY_REDIRECTS. After I changed the baseDirectory in build settings to /client/public to point to index.html. The app appears to launch without the REDIRECT error, but nothing loads. I’m guessing this is because I am not running an npm run build command, or not loading a prebuild command. Any help would be greatly appreciated. Thank you
Here is the repo this app is linked to:


Change baseDirectory:/ to baseDirectory:build . It worked for me.

Leave a Reply