Challenge 2: help a fellow developer


#1

can someone help this guy?

summary:
after updating to webpack 4 and bumping up dependencies all over the place

something (openid connect + pushstate + iis) stopped working
And I can’t even start asking “the right” questions.

please (-:


#2

Hi, This is because it is trying to read static files.

Use url rewrite to set the redirect paths.

If you have Url rewrite module installed then add this web.config file in the root level of application on production.

If not first install Url rewrite module from microsoft and then add this web.config file.
Once you add the web.config as shown below, the Urlrewrite will pick up the rules set up from the web.config and wont look for static files.

<configuration>
    <system.webServer>
 <!--  this is needed when iis is unable to read json files because of mime type missing -->
<!-- <staticContent>
            <mimeMap fileExtension=".json" mimeType="application/json" />
        </staticContent>   -->
   <rewrite>
             <rules>
                 <remove name="redirect all requests" />
                 <rule name="redirect all requests" stopProcessing="true">
                     <match url="^(.*)$" ignoreCase="false" />
                     <conditions logicalGrouping="MatchAll">
                         <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false" />	
			 <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />		 
                     </conditions>
                     <action type="Rewrite" url="/" appendQueryString="true" />
                 </rule>
             </rules>
         </rewrite> 
    </system.webServer>
</configuration>

Hope this helps.