_redirects not working Vue 3 SPA

PLEASE help us help you by writing a good post!

  • we need to know your netlify site name. Example: gifted-antelope-58b104.netlify.app


  • DNS issues? Tell us the custom domain, tell us the error message! We can’t help if we don’t know your domain.
  • Build problems? Link or paste the FULL build log & build settings screenshot

The better the post - the faster the answer.

Hello I am trying to redirect requests out of my netlify app to an external API. The API’s address is{controller}/{endPoint}

my redirect rule is as follows:

in _redirects file, in public folder →

/api/* 200

My problem is it appears the traffic is not being appropriately redirected. See screenshot for axios error

as you can see the request address does not appear to be correct and I am struggling to figure out what I have may have done wrong. Any help would be greatly appreciated!!!

is nobody going to look at this??

You are using a wildcard *, so likely you need to use a :splat as well as seen in this documentation.