I have encountered an issue with my single web app where it functions well locally and deploys to Azure seamlessly via a release pipeline. However, after deployment, the .css file is not loading on the browser and returns a 404 error. The index.html file contains the necessary references to the .css file as evident in the first screenshot:
Could the problem lie within the web.config file, preventing the server from serving .css files and other types of files?
<configuration>
<system.webServer>
<handlers>
<add name="iisnode" path="server.js" verb="*" modules="iisnode"/>
</handlers>
<rewrite>
<rules>
<rule name="StaticContent">
<action type="Rewrite" url="public{REQUEST_URI}"/>
</rule>
<rule name="DynamicContent">
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="True"/>
</conditions>
<action type="Rewrite" url="server.js"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>