Repository navigation
feat: support Cloudflare cf deployments - #65
Merged
Merged
Conversation
Use canonical cf projects for deploys and production config checks. Keep Wrangler for legacy projects and beta operations that need it. Pin the CLI and document account-token and login boundaries. Co-authored-by: Codex <noreply@openai.com>
Require the canonical cf filename so deployment reads the same config that preflight checks. Print TypeScript binding instructions for public values, D1, and R2 when a project uses cloudflare.config.ts. Clarify separate deploy, inventory, and setup credentials in the production guide. Co-authored-by: Codex <noreply@openai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR
Make the shared LVBT CLI deploy Cloudflare projects through the new
cfCLI when they declare a canonicalcloudflare.config.ts. Keep Wrangler support for existing projects and the small operations thatcfbeta cannot perform safely yet.Overview of Changes
cffor projects with a canonical config, and avoid deploying a retained Wrangler mirror twice.cloudflareConfigto the platform inventory; usecffor supported D1, R2, and migration setup while retaining an explicit inventory credential and Wrangler fallback for single-secret writes.cf@1.0.0-beta.5and the current compatible Wrangler version.Validation:
pnpm checkpassed (262 CLI tests and 79 web-platform tests). The Week Without Driving consumer independently resolved exactly onecfdeploy target from its canonical config.Follow-ups
The Week Without Driving site PR will vendor this exact commit and validate its Worker dry run. The shared package has not been published or tagged; this PR does not deploy a Worker. The
cfbeta still delegates part of bundling to Wrangler, and Wrangler remains the documented fallback for OAuth inventory reads and safe single-secret writes.