MCPcopy
hub / github.com/triggerdotdev/trigger.dev / action

Function action

packages/remix/src/index.ts:5–13  ·  view source on GitHub ↗
({ request }: ActionFunctionArgs)

Source from the content-addressed store, hash-verified

3
4export function createRemixRoute(client: TriggerClient) {
5 const action = async ({ request }: ActionFunctionArgs) => {
6 const response = await client.handleRequest(request);
7
8 if (!response) {
9 return json({ error: "Not found" }, { status: 404 });
10 }
11
12 return json(response.body, { status: response.status, headers: response.headers });
13 };
14 return { action };
15}

Callers 2

handleTelemetryFunction · 0.50
wrapCommandActionFunction · 0.50

Calls 2

jsonFunction · 0.85
handleRequestMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…