Hello Netlify Support,
I am experiencing a persistent issue where my deployments consistently fail to find my serverless functions. The deploy summary always shows “No functions deployed”.
After checking the full deploy log, the key error seems to be this line:
“Config file: No config file was defined: using default values.”
This is happening even though my repository is correctly structured.
- My GitHub Repository:
https://github.com/muhammadhabani/plants-project
- My Netlify Site Name:
plantsksa
Troubleshooting steps I have already taken:
- Confirmed the GitHub repository has a
functions
directory at the root.
- Confirmed the repository contains a
netlify.toml
file at the root with the correct [build]
settings (publish = "."
and functions = "functions/"
).
- Confirmed that all build settings in the Netlify UI (Base directory, Publish directory, Functions directory) are completely empty, so they should not be overriding the
netlify.toml
file.
- I have even tried deleting the site and creating a new, clean site from the same GitHub repository, but the problem still persists on the new site as well.
Could you please investigate why the build container for my site is not detecting the netlify.toml
file from the root of my linked repository?
Thank you for your help.
I’m not seeing any site with that name. Was it renamed/deleted?
Hello,
My apologies for the confusion. You were correct, the site had been deleted and re-created with a random name.
To make it easier for you to find, I have now renamed the new site back to the original name.
So, the correct site name to investigate is indeed: plantsksa
The site URL is: https://plantsksa.netlify.app
The problem of “No functions deployed” is still happening on this site, even after a fresh deployment from the linked GitHub repository.
Thank you for your help.
Hello,
Thank you so much for your help! Your advice was the key to solving the problem.
You were absolutely right, the issue was with the Build Settings in the Netlify UI. There was an incorrect value in my “Publish directory” field.
After I followed your advice and went to Site settings > Build & deploy, I was able to correct the settings (specifically, I cleared the incorrect “Publish directory” and ensured the “Base directory” was set correctly for my project).
After saving and triggering a new deploy, the build process immediately detected my netlify.toml
file and my functions. The site is now live and working perfectly.
Thank you again for the accurate and helpful guidance that pointed me to the exact source of the problem!
Best regards.