my stack overflow post is here
as of now, I have a fetch request in development mode to query the api exposed at localhost:3000/send-email.
axios.post('http://localhost:3000/send-email', data) .then(() => { setSent(true) }) .then(() => { resetForm() }) .catch((err)=> { console.log('Message not sent', err) })
When I deploy to heroku, I am no longer wanting to point to localhost. What do I change it to? would it be just pointing to my own domain name like this?
axios.post(`http://www.example.com/send-email`, data)
I can’t seem to find the right thing to search for for this step.
submitted by /u/dbnoisemaker
[link] [comments]