Hi All,
I am trying to deploy single spa application but it says “Page not found” https://gallant-bartik-47bb90.netlify.app/
I executed npm run build
command on the app and it created a “dist” folder which i have uploaded on netlify to deploy the app.
It is just frontend app, without any database or backend connection.
Is there any other thing which needs to be done to deploy the app ?
Hi there, @Aniket_Harshe
Welcome to the Netlify Forums! Good question. Do you have an index.html? We often find that this is the cause of this error.
I suggest reading this support guide as well as some of the follow up comments to see if it gets you on the right track!
We attempt to serve only /index.html in case you try to load your site without a path, for example:
https://yourdomain.name/
The easiest way for you to see what files your build sent us is to download a copy of the deploy, available from the deploy’s logs page as per this screenshot:
[image]
When you check this, be aware that EACH deploy has this page and icon, so you can download a copy of ANY deploy. For debugging problems with your live site, make sure it says “Published Deploy” on the …
Let us know!
Hi,
I have added index.html file in my folder and also added _redirect but now i am getting blank page https://wonderful-jennings-b76f9a.netlify.app/
Am i missing something?
Hi @Aniket_Harshe ,
Your publish directory should probably be build
, but you’re publishing public
.
I have published the build folder which was created, it didn’t have index.html so i copied it from public folder and added to build folder
That’s the problem right then. You need to generate an index.html
during build. If you check the source code of the HTML file you’ve currently published, you’d get your answer of why it’s blank.
1 Like