Skip to content

Remove Cloudflare Workers deployment steps from CI/CD#114

Merged
pokle merged 5 commits intomasterfrom
claude/research-preview-auth-pnbQV
Apr 3, 2026
Merged

Remove Cloudflare Workers deployment steps from CI/CD#114
pokle merged 5 commits intomasterfrom
claude/research-preview-auth-pnbQV

Conversation

@pokle
Copy link
Copy Markdown
Owner

@pokle pokle commented Mar 27, 2026

Summary

This PR removes the automated deployment steps for Cloudflare Workers from the branch deployment workflow. The AirScore API Worker and Auth API Worker are no longer deployed through this CI/CD pipeline.

Changes

  • Removed the "Deploy AirScore API Worker" step that deployed web/workers/airscore-api
  • Removed the "Deploy Auth API Worker" step that deployed web/workers/auth-api
  • Both steps used the cloudflare/wrangler-action@v3 action with shared Cloudflare credentials

Notes

The frontend deployment to Cloudflare Pages and the "Output Preview URL" step remain unchanged. This change suggests that Cloudflare Workers deployments may now be handled through an alternative method or are no longer part of the automated deployment process.

https://claude.ai/code/session_01SsanzGQb7cr2RYmqNb7LpZ

claude and others added 5 commits March 27, 2026 11:16
Branch deploys were running `wrangler deploy` for auth-api and airscore-api
workers without any environment flag, overwriting the production workers
with potentially untested code. These workers only route to glidecomp.com
anyway, so they were never reachable from preview URLs.

https://claude.ai/code/session_01SsanzGQb7cr2RYmqNb7LpZ
Three changes to make Google OAuth work on Cloudflare Pages preview URLs:

1. Pages Function (functions/api/auth/[[path]].ts) proxies /api/auth/*
   to the auth-api worker via a service binding, so preview deployments
   can reach the auth worker regardless of domain.

2. Root wrangler.toml configures the Pages project with the AUTH_API
   service binding and switches deploys to `wrangler deploy` (which
   reads wrangler.toml) instead of `wrangler pages deploy`.

3. Better Auth oAuthProxy plugin + trustedOrigins wildcard so Google's
   OAuth callback on production forwards auth results back to the
   preview origin (e.g. *.glidecomp.pages.dev).

https://claude.ai/code/session_01SsanzGQb7cr2RYmqNb7LpZ
wrangler deploy is the Workers command and doesn't accept --branch.
wrangler pages deploy reads the project config from the root wrangler.toml.

https://claude.ai/code/session_01SsanzGQb7cr2RYmqNb7LpZ
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 3, 2026

@pokle pokle merged commit ce8766b into master Apr 3, 2026
5 checks passed
@pokle pokle deleted the claude/research-preview-auth-pnbQV branch April 3, 2026 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants