Closed v-alex-dev closed 3 months ago
If you want to see the result of the (successful) deployment https://master.d257nvidu1xe7a.amplifyapp.com/
Hi @v-alex-dev 👋 , thanks for reaching out. I noticed that your app's amplify.yml
file specifies the baseDirectory: dist/aspic-site
. The 404 error can occur if the index.html
file is missing from this deploy folder.
To identify the correct build directory, run a production build of your app locally and observe the output directory created. Then, update the baseDirectory
field in amplify.yml
accordingly.
Mmh. Yes, I noticed that the "index.html" file is in the /dist/aspic-site/browser folder.
But isn't the browser folder taken into account by default in the browser?
I just got my answer. Obviously not. You need to specify the browser folder in the amplify.yml file.
I've obviously made a nasty shortcut.
Thanks for your help
@v-alex-dev I am glad to hear that you are unblocked! Closing the thread.
Environment information
Description
Hello everyone. I'd like to deploy my angular application on its latest version. The first build in aws amplify failed. The node js version was not sufficient. So I added a build image of node.js 20. The depolyming was done correctly.
However, when I clicked on the link to the deployed site. I get a 404 http error.
Which isn't even the one I created. The project is like not found.