Skip to content

Commit 7f68054

Browse files
committed
add web config
1 parent ce1ad36 commit 7f68054

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

angular/web.config

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<system.webServer>
4+
<staticContent>
5+
<remove fileExtension=".json" />
6+
<mimeMap fileExtension=".json" mimeType="application/json" />
7+
<mimeMap fileExtension="woff" mimeType="application/font-woff" />
8+
<mimeMap fileExtension="woff2" mimeType="application/font-woff" />
9+
</staticContent>
10+
<!-- IIS URL Rewrite for Angular routes -->
11+
<rewrite>
12+
<rules>
13+
<rule name="Angular Routes" stopProcessing="true">
14+
<match url=".*" />
15+
<conditions logicalGrouping="MatchAll">
16+
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
17+
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
18+
<add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
19+
</conditions>
20+
<action type="Rewrite" url="/" />
21+
</rule>
22+
</rules>
23+
</rewrite>
24+
</system.webServer>
25+
</configuration>

0 commit comments

Comments
 (0)