I have added my github token to the environment variables for my site, and I am able to get the expected response in development. However, when I go to production I’m not getting a response from the api. It fails with a 404 error. Check it out here and in the screenshots below: https://5f05238f66008300072ed499--compassionate-perlman-425237.netlify.app/project.
Hi, @JMo911, I see this x-nf-request-id is a call to a function and the 404 is happening because there were no functions successfully deployed for that site.
The build logs for that deploy id (5f05238f66008300072ed499) show:
6:46:43 PM: 0 new functions to upload
To resolve this, we need to find out why the functions don’t deploy with the build. Our initial troubleshooting guide is here:
I’m not seeing the functions directory being defined in the site build. I also don’t see a netlify.toml file for this repository which is where that directory would be defined.
Would you please take a look at the functions debugging guide and try the suggestions there? I recommend starting with adding netlify.toml to the repo and defining a functions directory in that file.
If guide above doesn’t help or if there are other questions, please let us know what you tried and what the results where. We are happy to keep working on this.
If there are other questions, we’re here and happy to answer. Likewise, if you find the solution on your own and want to share it here, we would love to hear about it!