{"id":25470393,"url":"https://github.com/msisdev/cf-workspace-example","last_synced_at":"2025-11-04T18:30:36.024Z","repository":{"id":269576391,"uuid":"869018079","full_name":"msisdev/cf-workspace-example","owner":"msisdev","description":"cf workers + pages  + bun + monorepo + github action","archived":false,"fork":false,"pushed_at":"2024-10-14T06:19:26.000Z","size":7745,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-24T15:28:27.381Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msisdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-10-07T15:21:48.000Z","updated_at":"2024-10-14T06:19:29.000Z","dependencies_parsed_at":"2024-12-24T15:38:33.571Z","dependency_job_id":null,"html_url":"https://github.com/msisdev/cf-workspace-example","commit_stats":null,"previous_names":["msisdev/cf-workspace-example"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msisdev%2Fcf-workspace-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msisdev%2Fcf-workspace-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msisdev%2Fcf-workspace-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msisdev%2Fcf-workspace-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msisdev","download_url":"https://codeload.github.com/msisdev/cf-workspace-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239437820,"owners_count":19638568,"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":"2025-02-18T08:33:51.401Z","updated_at":"2025-11-04T18:30:35.989Z","avatar_url":"https://github.com/msisdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cf-workspace-example\nThis example shows how to setup:\n- CF [Workers](https://developers.cloudflare.com/workers), [Pages](https://developers.cloudflare.com/pages)\n- [Bun](https://bun.sh/) Workspace\n- Monorepo and internal package ([Prisma](https://www.prisma.io/))\n- [GitHub Action](https://docs.github.com/ko/actions)\n\n## Limits:\n\u003e You cannot configure secrets for Cloudflare Pages with GitHub Action.\n\n- Here is [another workaround](https://github.com/marketplace/actions/refined-cloudflare-pages-action) where you can configure secrets.\n\nActually, you can't do that in the normal way either. However, for CI/CD, it's probably not ideal.  \nIn my case, I chose to configure it through the cloudflare dashboard to keep things simple.\n\n\n\u003e You should watch [cloudflare/pages-action](https://github.com/cloudflare/pages-action) for further updates.\n- I'm using an unofficial [workaround by kitabisa](https://github.com/kitabisa/cloudflare-pages-action) that utilizes [cloudflare/wrangler-action](https://github.com/cloudflare/wrangler-action) because the official [cloudflare/pages-action](https://github.com/cloudflare/pages-action) doesn't support bun.\n\n## Quick Test\n[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/boxcolli/cf-workspace-example)\n\n## Steps\n1. Publish an empty repository  \n2. Prepare `CLOUDFLARE_API_TOKEN` ([how to](https://developers.cloudflare.com/pages/how-to/use-direct-upload-with-continuous-integration/#add-cloudflare-credentials-to-github-secrets))\n3. Prepare `CF_ACCOUNT_ID` (its in your dashboard url)\n3. `gh repo clone boxcolli/cf-workspace-example ./`\n4. Push into 'main'\n5. Uncomment workflow codes:\n```yml\n# .github/workflows/*.yml\n\non:\n  # UNCOMMENT THIS PART #\n  # push:\n  #   branches:\n  #     - main\n  #   paths:\n  #     - \"fe/**\"\n  #     - \".github/workflows/deploy-fe.yml\"\n```\n6. Create 'preview' branch\n\n## Useful Commands\n```\n(init package)\n$ bun init\n\n(init worker or page)\n$ bun create cloudflare@latest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsisdev%2Fcf-workspace-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsisdev%2Fcf-workspace-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsisdev%2Fcf-workspace-example/lists"}