Patrick Lima
Patrick Lima
CDCloudflare Developers
Created by Patrick Lima on 9/10/2024 in #pages-help
Turborepo with GitHub integration
* Site: https://memolens.app * AccountId: d3d0378e716fdb8eec266de86fa0e960 * Deployment ID: 81ac55f7-c5c8-4627-b9a4-d5b741c37ee6 I am trying to deploy a Turborepo package (Next.js) with a GitHub integration. When I do a local deploy npx @cloudflare/next-on-pages everything works fine, when I do by GitHub integration it fails saying In a non-interactive environment, it's necessary to set a CLOUDFLARE_API_TOKEN environment variable for wrangler to work. I tried putting a secret on Dashboard and doing with Wrangler CLI, but it never finds this CLOUDFLARE_API_TOKEN. Am I doing something wrong? The configuration for the deploy is: Build command: npm run deploy (it targets a command on apps/web, using Turborepo filter, doing a npm run build and npx @cloudflare/next-on-pages) Build output directory: /.vercel/output/static Root directory: /
2 replies