How to configure directories on Starter account?

Have just set up my Starter account basic site and connected to a Github repo. Would like to configure Netlify to search for the index.html file in my public directory, and for my **.js file in the functions directory. How do I do that? Right now Netlify cannot find my files, and I have a File Not Found error.

The index.html must reside at the root of the directory/repository you are deploying. It cannot reside in a sub directory.

For instance, if you have a local directory you are developing in called new-website this is a structure you might use.

new-website
ā”œā”€ā”€ 404.html
ā”œā”€ā”€ about.html
ā”œā”€ā”€ assets
ā”‚   ā”œā”€ā”€ css
ā”‚   ā”‚   ā””ā”€ā”€ styles.css
ā”‚   ā”œā”€ā”€ img
ā”‚   ā”‚   ā””ā”€ā”€ favicon.png
ā”‚   ā””ā”€ā”€ js
ā”‚       ā””ā”€ā”€ index.js
ā””ā”€ā”€ index.html

Using drag and drop you would deploy the new-website directory. If deploying from git, you would have the git repository initialised inside the new-website directory (so that index.html was at the root.)

1 Like

Thank you very much; I followed your instructions and it worked.

@pmdenlinger Thank you for following up and letting us know it worked. And thanks dig for the help!!