diff --git a/.github/workflows/distribute-resources-deploy.yml b/.github/workflows/distribute-resources-deploy.yml index bbbe5a9..4d5ebba 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 --yes @cloudflare/next-on-pages@latest + - name: Publish to Cloudflare Pages uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CF_PAGES_TOKEN }} command: | - pages deploy ./app --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