mirror of
https://github.com/luxfi/explorer-v1.git
synced 2026-10-30 19:34:59 +00:00
Previously, when navigating to `/api-docs`, the nginx configuration mistakenly routed the request to the backend because it matched the `api` regex pattern. We've now refined the regex to match requests to `/api` only if not immediately followed by `-docs`. Examples: - **Matches**: `"api/v1"`, `"api-test"`, `"apixyz"`, `"apiDocs"` (anything without `"-docs"` directly after `"api"`) - **Doesn't Match**: `"api-docs"`, `"api-docs-v2"` (where `"api"` is directly followed by `"-docs"`)