export default { async fetch(request, env, ctx) { return Response.json({ message: "Hello from the edge", region: request.cf?.colo ?? "unknown", }); },
};
export default { async fetch(request, env, ctx) { return Response.json({ message: "Hello from the edge", region: request.cf?.colo ?? "unknown", }); },
};
export default { async fetch(request, env, ctx) { return Response.json({ message: "Hello from the edge", region: request.cf?.colo ?? "unknown", }); },
};
name = "hello-edge"
main = "src/index.js"
compatibility_date = "2025-01-01"
name = "hello-edge"
main = "src/index.js"
compatibility_date = "2025-01-01"
name = "hello-edge"
main = "src/index.js"
compatibility_date = "2025-01-01"
name: Deploy Worker on: push: branches: [main] jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
name: Deploy Worker on: push: branches: [main] jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
name: Deploy Worker on: push: branches: [main] jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
Total Upload: 0.42 KiB / gzip: 0.30 KiB
Uploaded hello-edge (1.15 sec)
Deployed hello-edge triggers (0.32 sec) https://hello-edge.<my-subdomain>.workers.dev
Total Upload: 0.42 KiB / gzip: 0.30 KiB
Uploaded hello-edge (1.15 sec)
Deployed hello-edge triggers (0.32 sec) https://hello-edge.<my-subdomain>.workers.dev
Total Upload: 0.42 KiB / gzip: 0.30 KiB
Uploaded hello-edge (1.15 sec)
Deployed hello-edge triggers (0.32 sec) https://hello-edge.<my-subdomain>.workers.dev