Does `wrangler pages deploy` pick up `wrangler.toml` config?
Seems like the wrangler.toml is not being properly picked up when I used
wrangler pages deploy
. I made some bindings with the CLI which I added to the wrangler.toml, but the bindings did not actually get applied, I had to do it manually in the dashboard. Is this a known issue or am I "holding it wrong"?3 Replies
i think i see the issue but i would love some confirmation here if
wrangler pages deploy
does in fact pick up config from wrangler.toml
.If you're deploying automatically from git you need to enable the v2 build system for wrangler.toml to work:
https://developers.cloudflare.com/pages/configuration/language-support-and-tools/#v2-build-system
If you're deploying manually then it should work.
It will only use your wrangler.toml file if the
pages_build_output_dir
option is set.
Also make sure your wrangler is up to datethanks!