#Refer to API routes in fetch

3 messages · Page 1 of 1 (latest)

alpine finch
#

If I try to do it without the hostname, I get an Invalid URL error

#

Update: I just added the variable const domain = 'http://localhost:3000' || 'domain.vercel.app

south hatch
#

how are you using fetch?