Hi Netlify community,
I’m facing some deployment issues with my site on Netlify, and I could really use some help in getting it sorted out. I have HTML files located in two main directories:
/
|-- main/
| |-- index.html
| |-- cookie_banner.html
| |-- header.html
| |-- privacy_policy.html
|
|-- assets/
| |-- icons/
| |-- css/
| | |-- styles.css
| |-- js/
| | |-- main.js
| |-- netlify/functions
| | |-- sendEmail.js
|
|-- recipes/
| |-- [recipe-pages].html
When deploying to Netlify, my site preview looks incomplete: none of my CSS is being applied, and only 10 out of more than 50 files are visible in the Netlify file browser and in Chrome Devtools (Error 404).
All the paths for the assets (CSS, JS, icons) work perfectly in my local environment, but the deployed version doesn’t seem to load all the files. I’m using the main/ directory as my publish directory.
What I’ve Tried:
I ensured that all asset paths are relative to the main/
directory in both the main/
and recipes/
folders.
Set it to main/
in the Netlify deploy settings.
No significant errors aside from the styles not loading.
Confirmed that no crucial directories/files are being excluded from the deployment.
Wrote all my dependencies in the correct manner:
Questions:
- Could this be a problem with how my publish directory is set up?
- Is there anything in the deploy settings or build settings I may have missed to ensure all files are deployed and linked correctly?
- Should the
recipes/
folder be handled differently in the deploy process, or do I need a custom route for those HTML files? - Is there any reason why the deployment preview would show only 10 files when my project includes far more?
The “crippled” deployment can be found here: https://jucilene-santana.netlify.app/
Thanks in advance for your help!