Using iis as a reverse proxy for SPAs

Using iis as a reverse proxy for pattern with for SPAs(Angular, React, Vue)

To use iis with single web page applications you should have a backend server(java, tomcat, nodejs, php) that normally have a link like api/something

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <outboundRules>
            	<!--Api rule redirect-->
            	<rule name="reverse proxy" preCondition="" stopProcessing="true">
                    <match filterByTags="None" pattern="^http(s)?://www.domaine.name/(api/.*)" />
                    <conditions logicalGrouping="MatchAll" trackAllCaptures="true" />
                    <action type="Rewrite" value="http{R:1}://www.domaine.name:8080/{R:2}" />
                </rule>
                <!--Other rules to get html content is your choice-->
            </outboundRules>
            <rules>
            	<!--Other rules to configuration-->
            </rules>
        </rewrite>
    </system.webServer>
</configuration>