Documentation on using wrangler.toml to configure a Pages project (not workers/functions)

According to this article, it should be possible to use a wrangler.toml to configure a Pages project: https://blog.cloudflare.com/pages-workers-integrations-monorepos-nextjs-wrangler/ So I ran pnpm dlx wrangler@latest pages download config <my-project-name> But the downloaded wrangler.toml is missing fields for things like my build command or the project root directory, and I cannot find any documentation on Cloudflare about this. I am also now hard-stuck and cannot change the build output directory in the UI (input is disabled). It says I need to configure that through wrangler.toml... but I don't know how to do that. Is there any reference doc where I can see all available commands for Pages configs?
No description
1 Reply
aleksandr
aleksandr2mo ago
FWIW, the link at the top of that screenshot doesn't help as that article doesn't list the available commands. There appears to be no way to change the build output directory or root directory. https://developers.cloudflare.com/pages/functions/wrangler-configuration/
Want results from more Discord servers?
Add your server