diff --git a/pkg/server/localproxy.go b/pkg/server/localproxy.go index 68487271d7e..699994b1cbe 100644 --- a/pkg/server/localproxy.go +++ b/pkg/server/localproxy.go @@ -202,6 +202,11 @@ func WithLocalProxy( handler.ServeHTTP(w, req.WithContext(ctx)) }) + // if no additional mappings are provided, do not start local-only mini-front-proxy. + if additionalMappingsFile == "" { + return defaultHandlerFunc, nil + } + // If additional mappings file is provided, read it and add the mappings to the handler handlers, err := NewLocalProxyHandler(defaultHandlerFunc, indexState, additionalMappingsFile) if err != nil {