Using a Redirect plugin in conjuction with a wildcard route I have Craft set up to serve a single page Vue App (vue-cli) for all routes it can't match in the sections.

return [
  '&lt;url:(?!api).*&gt;' =&gt; ['template' =&gt; 'index'],
];


This works perfectly.

However, I was hoping I could also use a Redirect manager plugin like Retour, Redirect Manager or Sprout Redirects.

I tried them all but they only take effect when I disable the routing rule. 

How could I have both working together?
I ended up making a 404 template (which in atuality is the SPA index file)

This causes the Craft redirects to take effect, and have the SPA as a fallback route.

This means in Production i don't need any such route. For development purposes i do, so i made a conditional route file (to avoid the debug 404 of Craft):

 if(getenv('ENVIRONMENT') === 'dev') {
   return [
     '&lt;url:(?!api).*&gt;' =&gt; ['template' =&gt; '404']
   ];
 } else {
   return [];
 }