Skip to content

Commit

Permalink
fix(server): don't forward files with extension (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
junglesub authored Nov 1, 2024
1 parent ad2d313 commit 2ce0a45
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/resources/urlrewrite.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
<to last="true">-</to>
</rule>

<!-- Exclude paths with file extensions from forwarding -->
<rule>
<from>^/.*\.(jpg|jpeg|png|gif|json|css|js|svg|ico|webp|woff|woff2|ttf|otf)$</from>
<to last="true">-</to>
</rule>

<!-- Forward all other paths to index.html -->
<rule>
<from>^/.*</from>
Expand Down

0 comments on commit 2ce0a45

Please sign in to comment.