#Why does `payload.init` still require the config path to be set via env when `config` is supplied?

1 messages · Page 1 of 1 (latest)

frank galleon
#

I want to use the payload package in a monorepo, where our app creates a payload instance in local mode and supplies config during init, but it still errors saying it needs to find the config file. Why? Surely providing the config should remove the requirement on reading the config file from disk?

rough zenith
left hamlet
#

I think the OP's question was more about, if we can pass the Payload config object directly to the payload init, why do we need to specify the path at all?