-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.config
48 lines (42 loc) · 1.61 KB
/
web.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<configuration>
<system.webServer>
<handlers>
<!-- indicates that the app.js file is a node.js application to be handled by the iisnode module -->
<add name="iisnode" path="server/index.js" verb="*" modules="iisnode" />
</handlers>
</system.webServer>
</configuration>
<!-- <configuration>
<system.webServer>
<handlers>
<add name="iisnode" path="dist/index.js" verb="*" modules="iisnode" />
</handlers>
<rewrite>
<rules>
<rule name="Static Assets" stopProcessing="true">
<match url="([\S]+[.](html|htm|svg|js|css|png|gif|jpg|jpeg|json|ttf|woff2|woff|eot|eof))" />
<action type="Rewrite" url="client/build/{R:1}"/>
</rule>
<rule name="Index" stopProcessing="true">
<match url="^$" />
<action type="Rewrite" url="client/build/index.html"/>
</rule>
<rule name="React Routes" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_URI}" pattern="api/" negate="true" />
</conditions>
<action type="Rewrite" url="client/build/index.html" />
</rule>
<rule name="API">
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="True"/>
</conditions>
<action type="Rewrite" url="dist/index.js"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration> -->