MCPcopy Create free account
hub / github.com/triggerdotdev/trigger.dev / useEnvironments

Function useEnvironments

apps/webapp/app/hooks/useEnvironments.ts:7–12  ·  view source on GitHub ↗
(matches?: UIMatch[])

Source from the content-addressed store, hash-verified

5export type ProjectJobEnvironment = MatchedProject["environments"][number];
6
7export function useEnvironments(matches?: UIMatch[]) {
8 const project = useOptionalProject(matches);
9 if (!project) return;
10
11 return project.environments;
12}

Callers 1

BlankStateFunction · 0.90

Calls 1

useOptionalProjectFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…