From 58f47810e0a78cc378af1ffc94de534ba6c37f0f Mon Sep 17 00:00:00 2001 From: Sergei Bondar Date: Wed, 13 Aug 2025 12:45:10 +0400 Subject: [PATCH 1/3] fix_ci --- .github/workflows/distribute-resources-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/distribute-resources-deploy.yml b/.github/workflows/distribute-resources-deploy.yml index bbbe5a9..bd8ca13 100644 --- a/.github/workflows/distribute-resources-deploy.yml +++ b/.github/workflows/distribute-resources-deploy.yml @@ -45,4 +45,4 @@ jobs: with: apiToken: ${{ secrets.CF_PAGES_TOKEN }} command: | - pages deploy ./app --project-name="developer-playbook" + pages deploy --project-name="developer-playbook" From da5029e5817c0dd5a1c2d3ac6aac4a8b41ce1a50 Mon Sep 17 00:00:00 2001 From: Sergei Bondar Date: Wed, 13 Aug 2025 13:38:14 +0400 Subject: [PATCH 2/3] fix_ci --- .github/workflows/distribute-resources-deploy.yml | 7 +++++-- README.md | 2 +- vercel.json | 6 ------ 3 files changed, 6 insertions(+), 9 deletions(-) delete mode 100644 vercel.json diff --git a/.github/workflows/distribute-resources-deploy.yml b/.github/workflows/distribute-resources-deploy.yml index bd8ca13..ca0966f 100644 --- a/.github/workflows/distribute-resources-deploy.yml +++ b/.github/workflows/distribute-resources-deploy.yml @@ -37,12 +37,15 @@ jobs: - name: Push changes run: git push - - name: Build project + - name: Build project (Next.js) run: npm run build + - name: Generate Cloudflare Pages artifacts (Next on Pages) + run: npx @cloudflare/next-on-pages@latest + - name: Publish to Cloudflare Pages uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CF_PAGES_TOKEN }} command: | - pages deploy --project-name="developer-playbook" + pages deploy ./.vercel/output/static --project-name="developer-playbook" diff --git a/README.md b/README.md index e12db81..7aefe2c 100644 --- a/README.md +++ b/README.md @@ -49,4 +49,4 @@ category: "Guides" # Powered by -[![Powered by Vercel](https://www.datocms-assets.com/31049/1618983297-powered-by-vercel.svg "Powered by Vercel")](https://vercel.com/?utm_source=dev-playbook&utm_campaign=oss) +Cloudflare Pages diff --git a/vercel.json b/vercel.json deleted file mode 100644 index 277687f..0000000 --- a/vercel.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "buildCommand": "npm run build", - "outputDirectory": ".next", - "framework": "nextjs", - "installCommand": "npm install" -} \ No newline at end of file From 256485442181199e447c269bcf31acd6c61954ba Mon Sep 17 00:00:00 2001 From: Sergei Bondar Date: Wed, 13 Aug 2025 14:02:11 +0400 Subject: [PATCH 3/3] fix_ci --- .github/workflows/distribute-resources-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/distribute-resources-deploy.yml b/.github/workflows/distribute-resources-deploy.yml index ca0966f..4d5ebba 100644 --- a/.github/workflows/distribute-resources-deploy.yml +++ b/.github/workflows/distribute-resources-deploy.yml @@ -41,7 +41,7 @@ jobs: run: npm run build - name: Generate Cloudflare Pages artifacts (Next on Pages) - run: npx @cloudflare/next-on-pages@latest + run: npx --yes @cloudflare/next-on-pages@latest - name: Publish to Cloudflare Pages uses: cloudflare/wrangler-action@v3