fix(lib/registry.ts): Allow hide debug info. (#20891)

This commit is contained in:
Vanilla 2026-01-15 19:33:36 +08:00 committed by GitHub
parent 4dbd32063e
commit 3ecf9ee350
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ for (const namespace in namespaces) {
app.get('/', index);
app.get('/healthz', healthz);
app.get('/robots.txt', robotstxt);
if (config.debugInfo) {
if (config.debugInfo !== 'false') {
// Only enable tracing in debug mode
app.get('/metrics', metrics);
}