Skip to content

Commit

Permalink
azure refresh fix 🙏
Browse files Browse the repository at this point in the history
  • Loading branch information
Dymoxz committed Nov 28, 2024
1 parent 9f74f53 commit 42fdcb6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/InstrumentRental-web/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"tsConfig": "apps/InstrumentRental-web/tsconfig.app.json",
"assets": [
{
"glob": "**/*",
"glob": "web.config",
"input": "apps/InstrumentRental-web/public"
}
],
Expand Down
24 changes: 24 additions & 0 deletions apps/InstrumentRental-web/web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>

<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />

<!-- check if its path1 url and navigate to default page -->
<rule name="Path1 Request" enabled="true" stopProcessing="true">
<match url="^path1" />
<action type="Redirect" url="/index.html" logRewrittenUrl="true" />
</rule>

<!-- check if its path2 url and navigate to default page -->
<rule name="Path2 Request" enabled="true" stopProcessing="true">
<match url="^path2" />
<action type="Redirect" url="/index.html" logRewrittenUrl="true" />
</rule>

</rules>
</rewrite>
</system.webServer>
</configuration>

0 comments on commit 42fdcb6

Please sign in to comment.