MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / handleCreateTunnel

Function handleCreateTunnel

apps/yalt/src/index.ts:122–129  ·  view source on GitHub ↗
(request: Request, env: Env, ctx: ExecutionContext)

Source from the content-addressed store, hash-verified

120}
121
122async function handleCreateTunnel(request: Request, env: Env, ctx: ExecutionContext): Promise<Response> {
123 const tunnelId = env.connections.newUniqueId();
124 const tunnelName = crypto.randomUUID();
125
126 await env.tunnelIds.put(tunnelName, tunnelId.toString());
127
128 return new Response(JSON.stringify({ id: tunnelName }), { status: 201 });
129}
130
131type Resolver<T> = {
132 resolve: (value: T) => void;

Callers 1

handleManagementRequestFunction · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…