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

Function resetEnvironment

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

Source from the content-addressed store, hash-verified

37}
38
39const resetEnvironment = async () => {
40 const environment = await getEnvironment()
41 await environment.delete()
42
43 const space = await getSpace()
44 await space.createEnvironmentWithId(environmentId, { name: environmentId })
45}
46
47const localized = <T>(val: T) => ({ 'en-US': val })
48

Callers 1

mainFunction · 0.85

Calls 2

getSpaceFunction · 0.85
getEnvironmentFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…