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:
2025-10-19 21:48:22 +01:00
parent b998ea4205
commit fae14a5083

View File

@@ -18,7 +18,7 @@ server {
# Main location
location / {
try_files $uri $uri/ /index.html;
try_files $uri $uri/index.html /index.html;
}
# Security headers