Why Pages don't have a wrangler.toml?

I think the biggest confusion about using pages right now for me is that there is no real way of configuring a project in the CLI or with a wrangler.toml. This leads to all kinds of confusing things. For example, why do I need to specify a binding on wrangler pages dev? It would be supercool if Pages would work more like workers. I create a folder, can do all the config I do in the UI for setting up there including all the config I normally have for workers and then deploy like that.
7 Replies
Vero
Vero•14mo ago
Hey. Yes it's super confusing, this has been raised a lot of times and it's on the team's radar
benben
benbenOP•14mo ago
Don't get me wrong. The workers experience is actually pretty awesome with wrangler and I was surprised that pages is that much different do you have any ETA for that change to be testable?
Vero
Vero•14mo ago
No, not yet
davidmyersdev
davidmyersdev•12mo ago
Have there been any updates on this? Is there a better place to track this so that I can be notified when some sort of Pages config (wrangler.toml or otherwise) is supported?
kian
kian•12mo ago
Jeffrey Konowitch
Jeffrey Konowitch•10mo ago
@Vero 🐙 @kian Arriving here from a couple hours of googling. “cloudflare pages wrangler.toml” There should absolutely be a callout in the pages docs (and perhaps a console warning) that the wrangler.toml file is not used. There has been much confusion on this subject already. https://github.com/cloudflare/workers-sdk/issues/3757
GitHub
Pages dev reading wrangler.toml is really confusing · Issue #3757 ·...
Which Cloudflare product(s) does this pertain to? Wrangler core What version(s) of the tool(s) are you using? 3.5.0 What version of Node are you using? 18.17.1 What operating system are you using? ...
Vero
Vero•10mo ago
Yes, that's probably one of the things that cause more confusion. I'm passing this to the team, thank you
Want results from more Discord servers?
Add your server