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!!