Commit b9326ab
Fix static asset routing with explicit pass-through rules
Add wildcard rules for static assets (*.css, *.js, *.png, etc.)
before the /:user catch-all to prevent redirects from overriding
static file serving.
Reference: https://developers.cloudflare.com/pages/configuration/redirects/
"Redirects are always followed, regardless of whether or not an
asset matches the incoming request"
Fixes:
- /style.css now serves CSS instead of user.html
- /login redirects to /login/ instead of /user
- All static assets properly served
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 02f7d82 commit b9326ab
1 file changed
+16
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
8 | 18 | | |
9 | 19 | | |
10 | 20 | | |
11 | 21 | | |
12 | 22 | | |
13 | 23 | | |
14 | 24 | | |
15 | | - | |
| 25 | + | |
16 | 26 | | |
17 | 27 | | |
18 | 28 | | |
19 | 29 | | |
20 | 30 | | |
21 | 31 | | |
22 | 32 | | |
23 | | - | |
| 33 | + | |
24 | 34 | | |
0 commit comments