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