Error while deploying with Github Integration

I am deploying my workers via github integration and getting this error

[ERROR] In a non-interactive environment, it's necessary to set a CLOUDFLARE_API_TOKEN environment variable for wrangler to work. Please go to https://developers.cloudflare.com/fundamentals/api/get-started/create-token/ for instructions on how to create an api token, and assign its value to CLOUDFLARE_API_TOKEN.

The API token is specified in the Build settings for my workers so the CLOUDFLARE_API_TOKEN shouldn't be a problem.

I am using turborepo for my project and the deploy command is

pnpm turbo deploy --filter=@repo/api

and the root directory is apps/api.
2024-10-01_2.26.07.png
Cloudflare Docs
Learn how to create a token to perform actions using the Cloudflare API.
Was this page helpful?