directnirvana
CDCloudflare Developers
•Created by directnirvana on 4/21/2025 in #workers-help
Workers-specific command in a Pages project
No matter how I try and deploy my project I keep getting stopped at the last step. I am using the GitHub integration and have set my CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN under Variables and Secrets in the Settings tab of my worker. I've also tried to check and it appears I am in a workers project NOT a pages one. But every time I build it goes through everything and then fails right at the end with a message that says something to the effect of
23:39:50.481 ✘ [ERROR] It looks like you've run a Workers-specific command in a Pages project.
23:39:50.482
23:39:50.482 For Pages, please run
23:22:24.179 ✘ [ERROR] Running configuration file validation for Pages: 23:22:24.179
23:22:24.180 - Configuration file for Pages projects does not support "account_id" I don't have any "account_id" in my wrangler.toml file, and I have tried setting both wrangler deploy for pages and workers, and I keep just getting the same thing.
I see that there is a bug request here: https://github.com/cloudflare/workers-sdk/issues/6466 but I don't see a work around or a clear explanation of what causes this. I am at a complete loss in what to do.
23:39:50.482 For Pages, please run
wrangler pages deploy
instead.
and if I try and follow the instructions and do wranglers pages deploy I get the following:
23:22:22.997 Success: Build command completed
23:22:22.999 Executing user deploy command: npx wrangler pages deploy .vercel/output/static --project-name index
23:22:24.12723:22:24.179 ✘ [ERROR] Running configuration file validation for Pages: 23:22:24.179
23:22:24.180 - Configuration file for Pages projects does not support "account_id" I don't have any "account_id" in my wrangler.toml file, and I have tried setting both wrangler deploy for pages and workers, and I keep just getting the same thing.
I see that there is a bug request here: https://github.com/cloudflare/workers-sdk/issues/6466 but I don't see a work around or a clear explanation of what causes this. I am at a complete loss in what to do.
14 replies