Ok, first thing I would suggest is to check your netlify.toml file and make sure the redirect is setup correctly:
[build]
functions = "functions"
[[redirects]]
from = "/api/*"
to = "/.netlify/functions/:splat"
status = 200
But without seeing your code I’m a bit in the dark. So if you post your code on stackoverflow and send me a link to the question, or a direct link to your GitHub repo I can help troubleshoot
Ok, first thing I would suggest is to check your netlify.toml file and make sure the redirect is setup correctly:
[build]
functions = "functions"
[[redirects]]
from = "/api/*"
to = "/.netlify/functions/:splat"
status = 200
But without seeing your code I’m a bit in the dark. So if you post your code on stackoverflow and send me a link to the question, or a direct link to your GitHub repo I can help troubleshoot
I guess the other thing to try is to reference the fully qualified production URL - https://[your app name].netlify.app/api and see if that works