Change API Url that useFecht/Fetch requests.
i want to build a discord activity and i have a front and a backend server running.
for authorization i need to request a code from the backend server.
how can i rewite fetch from localhost 3000 to 3001
1 Reply
The BEST way to proxy your API in Nuxt
https://youtu.be/J4E5uYz5AY8
Alexander Lichter
YouTube
The BEST way to proxy your API in Nuxt
➡️ Proxying routes to your back-end or third party APIs is a common practice! Over the last two years, various strategies came up in Nuxt. But not all of them work equally will. To figure out which two strategies are the recommended ones, we have a look at the four most common strategies, their shortcomings and which ones I would recommend to us...