@@ -94,9 +94,9 @@ func installWorkspaceRoutes(r *mux.Router, config *RouteHandlerConfig, ip Worksp
94
94
})
95
95
routes .HandleSupervisorFrontendRoute (faviconRouter .NewRoute ())
96
96
97
- routes .HandleDirectSupervisorRoute (enableCompression (r ).PathPrefix ("/_supervisor/frontend" ).MatcherFunc (func (r * http.Request , rm * mux.RouteMatch ) bool {
98
- return rm .Vars [debugWorkspaceIdentifier ] == "true"
99
- }), false )
97
+ // routes.HandleDirectSupervisorRoute(enableCompression(r).PathPrefix("/_supervisor/frontend").MatcherFunc(func(r *http.Request, rm *mux.RouteMatch) bool {
98
+ // return rm.Vars[debugWorkspaceIdentifier] == "true"
99
+ // }), false)
100
100
routes .HandleSupervisorFrontendRoute (enableCompression (r ).PathPrefix ("/_supervisor/frontend" ))
101
101
102
102
routes .HandleDirectSupervisorRoute (r .PathPrefix ("/_supervisor/v1/status/supervisor" ), false )
@@ -115,12 +115,12 @@ func installWorkspaceRoutes(r *mux.Router, config *RouteHandlerConfig, ip Worksp
115
115
h .ServeHTTP (resp , req )
116
116
})
117
117
})
118
- err := routes .HandleDebugRoot (rootRouter .MatcherFunc (func (r * http.Request , rm * mux.RouteMatch ) bool {
119
- return rm .Vars [debugWorkspaceIdentifier ] == "true"
120
- }))
121
- if err != nil {
122
- return err
123
- }
118
+ // err := routes.HandleDebugRoot(rootRouter.MatcherFunc(func(r *http.Request, rm *mux.RouteMatch) bool {
119
+ // return rm.Vars[debugWorkspaceIdentifier] == "true"
120
+ // }))
121
+ // if err != nil {
122
+ // return err
123
+ // }
124
124
routes .HandleRoot (rootRouter .NewRoute ())
125
125
return nil
126
126
}
@@ -277,7 +277,7 @@ func (ir *ideRoutes) HandleRoot(route *mux.Route) {
277
277
r .Use (ir .Config .CorsHandler )
278
278
r .Use (ir .workspaceMustExistHandler )
279
279
280
- directIDEPass := ir .Config .WorkspaceAuthHandler (
280
+ workspaceIDEPass := ir .Config .WorkspaceAuthHandler (
281
281
proxyPass (ir .Config , ir .InfoProvider , workspacePodResolver ),
282
282
)
283
283
// always hit the blobserver to ensure that blob is downloaded
@@ -342,7 +342,7 @@ func (ir *ideRoutes) HandleRoot(route *mux.Route) {
342
342
return image
343
343
},
344
344
}
345
- }, withHTTPErrorHandler (directIDEPass ), withUseTargetHost ()))
345
+ }, withHTTPErrorHandler (workspaceIDEPass ), withUseTargetHost ()))
346
346
}
347
347
348
348
const imagePathSeparator = "/__files__"
0 commit comments