MCPcopy Index your code
hub / github.com/payloadcms/payload / loadConfig

Function loadConfig

test/generateDatabaseSchema.ts:28–32  ·  view source on GitHub ↗
(configPath: string)

Source from the content-addressed store, hash-verified

26}
27
28const loadConfig = async (configPath: string): Promise<SanitizedConfig> => {
29 return await (
30 await import(configPath)
31 ).default
32}
33
34if (!testConfigDir) {
35 throw new Error('Yo must Specify testConfigDir')

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…