benben
CDCloudflare Developers
•Created by benben on 10/14/2023 in #pages-help
Wildcard domain for pages
I set up a pages project with a function to build dashboards based on a subdomain. Now after I deployed it, I cannot setup a wildcard route like I used to for a worker. I found a post (https://community.cloudflare.com/t/wildcard-dns-entry-for-cloudflare-pages/382720) saying it will be supported at some point. Is there an ETA for that? What are current workaround? Creating another worker to proxy to the pages project with the actual worker code. Seems a lot of overhead. Another idea would be to move back to a worker project but how would I make that delivering assets and only run a function on
/
?
In general: The subtle and not so subtle differences between a pages and a worker project are the most confusing and UX killing aspects of workers/pages right now.1 replies
CDCloudflare Developers
•Created by benben on 10/10/2023 in #pages-help
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.9 replies