aravindrajme
aravindrajme
CDCloudflare Developers
Created by aravindrajme on 12/1/2024 in #general-help
Domain registration keeps failing.
Got it. Appreciate the help. 🫡
6 replies
CDCloudflare Developers
Created by aravindrajme on 12/1/2024 in #general-help
Domain registration keeps failing.
Thanks for your help!
6 replies
CDCloudflare Developers
Created by aravindrajme on 12/1/2024 in #general-help
Domain registration keeps failing.
@FloppyDisk Ah, shoot. I guess I have no other option then.
6 replies
CDCloudflare Developers
Created by aravindrajme on 11/27/2024 in #pages-help
Pages build failing because Puppeteer won't launch.
Hey, sure. No problem. I'll help as much as I can. Can you answer these questions, so I'll have enough context to help? * What's your environment? * What framework/library are you using? * What is the error you are getting? * Have you tried googling the error and have some pointers/ideas on what to do?
6 replies
CDCloudflare Developers
Created by aravindrajme on 11/27/2024 in #pages-help
Pages build failing because Puppeteer won't launch.
Here's the .github/workflows/deploy-to-cloudflare.yaml file in case anyone wants it for reference:
name: Deploy to Cloudflare Pages

on:
workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Set execute permissions for script
run: chmod +x script.sh

- name: Run dependency installation script
run: ./script.sh

- name: Install project dependencies
run: npm ci

- name: Build project
run: npm run build

- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy <YOUR_DIST_FOLDER> --project-name=<YOUR_PAGES_PRODUCT_NAME>
name: Deploy to Cloudflare Pages

on:
workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Set execute permissions for script
run: chmod +x script.sh

- name: Run dependency installation script
run: ./script.sh

- name: Install project dependencies
run: npm ci

- name: Build project
run: npm run build

- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy <YOUR_DIST_FOLDER> --project-name=<YOUR_PAGES_PRODUCT_NAME>
6 replies
CDCloudflare Developers
Created by aravindrajme on 11/27/2024 in #pages-help
Pages build failing because Puppeteer won't launch.
For someone who might face this same issue: it's better to run GitHub actions to deploy to Cloudflare pages in this case. I placed a script.sh on the root of the project which conditionally checks for dependencies and installs them if they aren't available on the runner. Then I gave it executable permissions, ran it, built the project files, and used the cloudflare/wrangler-action to deploy to Pages. If anyone from the Cloudflare team could help me find a way to do it with just Cloudflare, I'd be forever grateful. 🥹
6 replies
CDCloudflare Developers
Created by aravindrajme on 11/27/2024 in #pages-help
Pages build failing because Puppeteer won't launch.
I can get this done right with a GitHub action—I just need to install the missing dependencies in the runner for this to work. But I'm looking for a Cloudflare approach to solving this problem.
6 replies