MCPcopy Create free account
hub / github.com/contentlayerdev/contentlayer / getEnvironment

Function getEnvironment

packages/contentful-generator/src/index.ts:68–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66})
67
68const getEnvironment = async (): Promise<Contentful.Environment> => {
69 const space = await getSpace()
70 return space.getEnvironment(environmentId)
71}
72
73const getSpace = async () => {
74 const client = createClient({ accessToken })

Callers 2

createMockDataFunction · 0.70
resetEnvironmentFunction · 0.70

Calls 1

getSpaceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…