I have deployed the above site, it seemed to have rendered the frontend perfectly fine however, I can’t seem to get the functions to deploy (which I believe are the API endpoints) If you look in the repo, you will see a ‘client folder’ which is where Netlify would run the build command.
You will then see ‘netlify/functions’ and in there, all of the api endpoints which then link into the server.js file which you can also see.
Am I deploying this incorrectly? If so, how would I deploy it because after it deploys I see the below message:
@nathanmartin Thank you, what I have now done is moved netlify/functions to inside the client folder and looks like it’s picked up all 6.
Now the issue I’m getting is it doesn’t seem to be working with the express server in the server.js file.
I.e one of my functions urls is https://ubiquitous-dasik-c68acd.netlify.app/.netlify/functions/championMastery
I have updated this which you can see in the latest commit on my linked repo however, it’s not loading anything.
Request failed with status code 502
Have I missed a step in getting the app to talk to the server.js file?
@nathanmartin Thank you so much for your help! I have managed to change all into an _redirects file, changes my functions to become event handlers and everything works! I’ve been trying to figure this out for weeks and learned so much!