Today I deployed my first Svelte app to Netlify. After installing the requisite netlify adapter and making the necessary configurations, I deployed my app. The deployment was successful, but when I visit its URL, I get a 404.
that way, you can see what we are actually building as opposed to what we should be building! the reason why you get a 404 is always going to be that there is no index.html file, the question is just why.
I solved the issue. I made the mistake of creating my own _redirects file beforehand which routed all requests to ‘/’. The svelte netlify adapter generates the _redirect file at build. My rule was overwriting the generated redirect.