Commit 6dcdfeb
committed
fix: Fix static routing in kittygram gateway for admin and frontend assets.
Updated nginx config to split static file handling by path instead of using one generic `/static` fallback through `/`. Added explicit routes for Django admin and DRF static files (`/static/admin/`, `/static/rest_framework/`) and routed frontend bundles through `/static/` -> `/static/static/`. This resolves two regressions: white screen on frontend due to missing JS/CSS (`404 /static/js|css`) and unstyled Django admin due to wrong static resolution. Kept API/admin/media proxy behavior unchanged.1 parent e94f203 commit 6dcdfeb
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
19 | 31 | | |
20 | | - | |
21 | | - | |
| 32 | + | |
| 33 | + | |
22 | 34 | | |
23 | 35 | | |
0 commit comments