{"id":16397234,"url":"https://github.com/zerdos/cf-cra","last_synced_at":"2026-06-14T18:38:45.224Z","repository":{"id":103801074,"uuid":"487351948","full_name":"zerdos/cf-cra","owner":"zerdos","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-03T15:36:30.000Z","size":1404,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-04T17:45:00.767Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zerdos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-30T18:25:02.000Z","updated_at":"2022-04-30T18:25:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"67211bcf-276c-485a-8046-a05ba504867b","html_url":"https://github.com/zerdos/cf-cra","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"freemanlabstx/cloudflare-worker-cra","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerdos%2Fcf-cra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerdos%2Fcf-cra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerdos%2Fcf-cra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerdos%2Fcf-cra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zerdos","download_url":"https://codeload.github.com/zerdos/cf-cra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240286519,"owners_count":19777353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T05:09:32.518Z","updated_at":"2025-11-13T18:02:30.888Z","avatar_url":"https://github.com/zerdos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloudflare Workers \u003c3 Create React App\n\n[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button?paid=true)](https://deploy.workers.cloudflare.com/?url=https://github.com/bytesizedxyz/cloudflare-worker-cra\u0026paid=true)\n\nCloudflare Workers is a serverless platform which offers a [very cheap and highly scalable](https://workers.cloudflare.com/) way to serve your React application and run other serverless code. This is a fresh CRA project which automatically deploys to Cloudflare Workers with Github Actions, which you can fork and set up in a matter of minutes.\n\nThis setup costs \\$5/mo for **10 million requests per month.**\n\n## Pre-requisites\n\nYou'll need a [Cloudflare Workers account](https://dash.cloudflare.com/sign-up/workers) with\n\n-   A workers domain set up\n-   The Workers Unlimited subsciption (\\$5/mo)\n\n## Setup\n\nTo start your own project based on this template, just click \"Use this template\" or visit this link: https://github.com/lappalj4/cloudflare-worker-cra/generate\n\n#### Set your app name\n\nFirst, open up `wrangler.toml` and change the `name` property - this will be the subdomain that your app is published on.\n\nYour Cloudflare workers domain will be of the format `{your-worker-domain}.workers.dev`. When you publish an app on a Worker,\nit will be published on a subdomain corresponding to your app name - `cloudflare-worker-cra.{your-worker-domain}.workers.dev` by default.\n\n#### Get your Account ID and create a new API Token\n\nTo get your account ID:\n\n-   Go to https://dash.cloudflare.com \u003e Workers\n-   Copy your account ID\n\nTo create a new API Token:\n\n-   Go to https://dash.cloudflare.com/profile/api-tokens \u003e Create Token\n-   Give your token a name (i.e. Github Actions)\n-   Choose start with template\n-   Select the \"Edit Cloudflare Workers\" template\n-   Account Resources \u003e Include \u003e {your account}\n-   Zone Resources \u003e Include \u003e All zones from account \u003e {your account}\n\nOnce done, navigate to your GitHub repository \u003e Settings \u003e Secrets and add the following secrets:\n\n```\n- Name: CF_API_TOKEN\n- Value: your-api-token\n\n- Name: CF_ACCOUNT_ID\n- Value: your-account-id\n```\n\nPS: Your account id isn't really a secret and could be shared freely, but I feel it's just more convenient to store this\nconfiguration within the GitHub secrets instead of the repository code.\n\nThat's it! Now, just push a new commit into `master` and you'll find your React app deployed at `{app-name}.{your-worker-domain}.workers.dev`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerdos%2Fcf-cra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzerdos%2Fcf-cra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerdos%2Fcf-cra/lists"}