wrangler.toml configuration beta in a monorepo

I had a question regarding this public beta feature. When deploying, does Cloudflare only look for wrangler.toml at the root of the repository? We have a monorepo and it'd be located in a subdirectory like packages/pages. I think it might be difficult to move to the root of the repository without support for custom paths (Pages does not support custom paths for the wrangler.toml configuration file). Thanks!
3 Replies
Henry Black
Henry Black4mo ago
I have this same question @ericmatthys. - did you have any luck investigating? I have a monorepo and when I deploy my app using a root directory of /apps/app-name, it seems like the wrangler.toml is not being used (the deploy command used is the one from the dashboard, not the toml file) which makes me think it only looks at the top level of the monorepo
Henry Black
Henry Black4mo ago
Actually, I take that back. If you set the root directory inside Settings / Builds and Deployments it takes account of the wrangler.toml in that directory
No description
ericmatthys.
ericmatthys.OP4mo ago
Yes setting the Root directory fixes it!
Want results from more Discord servers?
Add your server