Netlify 404 error

hello there,
I deployed my vite-markdoc project from GitHub with this adders:
https://lambent-sfogliatella-2c50d3.netlify.app/

It gives a 404 error. i have index.html in my root directory. can’t finde the problem.
project build has no problem in my local and this is my log on netlify:

  1. Deploy site
    5:56:26 PM: Starting post processing
    5:56:26 PM: ────────────────────────────────────────────────────────────────
    5:56:26 PM: ​
    5:56:26 PM: Starting to deploy site from ‘dist’
    5:56:26 PM: Calculating files to upload
    5:56:27 PM: Post processing - HTML
    5:56:26 PM: 0 new files to upload
    5:56:26 PM: 0 new functions to upload
    5:56:26 PM: Section completed: deploying
    5:56:27 PM: Post processing - header rules
    5:56:26 PM: Site deploy was successfully initiated
    5:56:26 PM: ​
    5:56:26 PM: (Deploy site completed in 51ms)
    5:56:27 PM: Post processing - redirect rules
    5:56:26 PM: ​
    5:56:26 PM: Netlify Build Complete
    5:56:27 PM: Post processing done
    5:56:26 PM: ────────────────────────────────────────────────────────────────
    5:56:26 PM: ​
    5:56:26 PM: (Netlify Build completed in 2.2s)
    5:56:27 PM: Section completed: postprocessing
    5:56:27 PM: Caching artifacts
    5:56:27 PM: Started saving node modules
    5:56:27 PM: Finished saving node modules
    5:56:27 PM: Started saving build plugins
    5:56:27 PM: Finished saving build plugins
    5:56:27 PM: Started saving pip cache
    5:56:27 PM: Finished saving pip cache
    5:56:27 PM: Started saving emacs cask dependencies
    5:56:27 PM: Finished saving emacs cask dependencies
    5:56:27 PM: Started saving maven dependencies
    5:56:27 PM: Finished saving maven dependencies
    5:56:27 PM: Started saving boot dependencies
    5:56:27 PM: Finished saving boot dependencies
    5:56:27 PM: Started saving rust rustup cache
    5:56:28 PM: Site is live :sparkles:
    5:56:27 PM: Finished saving rust rustup cache
    5:56:27 PM: Started saving go dependencies
    5:56:27 PM: Finished saving go dependencies
    5:56:27 PM: Build script success
    5:56:27 PM: Section completed: building
    5:56:28 PM: Uploading Cache of size 102.7MB
    5:56:29 PM: Section completed: cleanup
    5:56:29 PM: Finished processing build request in 14.659s
    thanks for any help

image

Do you mean there is an index.html in the input, or the output?

Have you downloaded the output to confirm that it does contain an index.html file?

See the instructions here:

thanks for the fast reply!
there is no index.html in the output file. what should i do?

Make sure there is one.

The easiest way being to test it locally and ensure that you’re seeing it output the files you expect.

can you explain more about it. i have no clue where can i see my output in local and how to add index.html in output.

the project is working properly in localhost.

@FahimeKhandan It would depend on what you’re working with.

You haven’t mentioned any details and you only provided part of the build log so I can’t tell.

The only thing that I have to go off is that you’re trying to deploy the dist folder, which could be Vite, but could also be anything else that builds to a dist folder.

Generally speaking you would just locally run the same command that you have set as the Build command for Netlify.

So if you’ve only been using npm run develop locally, you would try npm run build locally and see what it generates.

got it!
thank you so much for your help.