Skip to content

Commit b064f0c

Browse files
committed
Add MapFallback
1 parent b92a06c commit b064f0c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

MyApp/Program.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,10 @@
8484

8585
app.MapFallbackToNode(nodeProxy);
8686
}
87+
else
88+
{
89+
// Map fallback to index.html in production (MyApp.Client/dist > wwwroot)
90+
app.MapFallbackToFile("index.html");
91+
}
8792

8893
app.Run();

0 commit comments

Comments
 (0)