I am using the kpm package to create my deployment, which I am deploying to Azure via ftp. I need to be able to serve static json files, so I need to add the following to my web.config:
<system.webServer>
<staticContent>
<mimeMap fileExtension=".json" mimeType="text/html" />
</staticContent>
</system.webServer>
The problem is that kpm pack generates a web.config file, so the only way to do this is to add a configuration section to the web.config file after it is created. Since I am performing automatic deployment through ci, this will take a little effort. Is there a better way to do this?
source
share