#Specify where payload can find payload.config.ts

1 messages · Page 1 of 1 (latest)

vocal zodiac
#

Hello everyone, I'm working on setting up payload in a nx-monorepo. I'm going the self-installation route by attaching payload to an existing express application but am getting a compilation error when starting the dev server.

Payload can't locate payload.config.ts. I'm thinkig it could be resolved if I could give payload a hint on where to locate the config file.

Here's a sample repo for review: https://github.com/warren-sadler/payload-cms-nx

I've included screen caps of my source tree and the stacktrace I see.

GitHub

Using Payload CMS in Nx Workspace. Contribute to warren-sadler/payload-cms-nx development by creating an account on GitHub.

placid linden
#

@vocal zodiac That is defined in your package.json commands

#

or via ENV variable

#

"PAYLOAD_CONFIG_PATH"

#

Check out your .envfile first to see if changing it there fixes things