fix: Nginx routing for subdirectory index.html files
Updated try_files directive to check for index.html in subdirectories before falling back to root index.html. This fixes /sdk routing. Before: try_files $uri $uri/ /index.html; After: try_files $uri $uri/index.html /index.html; Now /sdk correctly serves /sdk/index.html instead of root index.html 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -18,7 +18,7 @@ server {
|
||||
|
||||
# Main location
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
try_files $uri $uri/index.html /index.html;
|
||||
}
|
||||
|
||||
# Security headers
|
||||
|
||||
Reference in New Issue
Block a user