MCPcopy Index your code
hub / github.com/coder/coder / useProxy

Function useProxy

site/src/contexts/ProxyContext.tsx:198–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196};
197
198export const useProxy = (): ProxyContextValue => {
199 const context = useContext(ProxyContext);
200
201 if (!context) {
202 throw new Error("useProxy should be used inside of <ProxyProvider />");
203 }
204
205 return context;
206};
207
208/**
209 * getPreferredProxy is a helper function to calculate the urls to use for a given proxy configuration. By default, it is

Callers 13

AgentDevcontainerCardFunction · 0.90
AgentRowFunction · 0.90
WildcardHostnameWarningFunction · 0.90
AppLinkFunction · 0.90
useAppLinkFunction · 0.90
NavbarFunction · 0.90
TaskAppIFrameFunction · 0.90
WorkspaceProxyPageFunction · 0.90
TerminalPageFunction · 0.90
AgentChatPageFunction · 0.90
WorkspacePillFunction · 0.90
TerminalPanelFunction · 0.90

Calls

no outgoing calls

Tested by 1

TestingScreenFunction · 0.72