Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkg/server/localproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down