Conversation
- package.json, tsconfig, wrangler config - types for provisioning flow - cloudflare API client library
- cloudflare API client (cfFetch, cfFetchRaw) - 8-step provision: verify, D1, migrate, R2, R2 token, deploy, secrets, route - update flow: lookup existing bindings, re-migrate, redeploy - embedded.ts placeholders for build-time injection - POST /api/provision, POST /api/update, GET /api/status
- SSR JSX page with install/update mode toggle - form: token, account ID, worker name, admin creds - progress indicator and result display with copy-to-clipboard - inline CSS (dark mode, monospace, zinc palette) - inline JS for form handling, no framework
- Load worker bundle, migrations, and static assets from public/ via ASSETS binding at runtime - Add deploy.ts with Cloudflare asset upload session flow for deploying workers with static assets - Make D1/R2 creation idempotent, run migrations statement-by-statement
- R2 S3 API expects SHA-256 hash of the API token value as the secret key, not the raw token value - Was causing SignatureDoesNotMatch on presigned URL PUT requests
- Non-sensitive vars as plain_text bindings, secrets for sensitive only - Add install.residue.dev custom domain - Open-source transparency line in header
- Per-row copy buttons for credentials and login command - Spin animation on circle-notch progress icons - Footer commit hash links to GitHub commit
- Create service token, register with AI Search, create instance with path filters - Non-fatal: skips gracefully if permissions missing or instance exists - Add AI Search Edit permission to required token permissions
- Add install.residue.dev as Option A in README and docs getting started - Simplify landing page quick start to 3 steps (token, installer, CLI) - Add skip callouts for steps 1 and 3 when using the installer
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.
Summary
Add an installer worker at install.residue.dev that automates the full deployment flow: D1 database, R2 bucket, S3 API credentials, AI Search instance, secrets, and worker deploy. Includes an update page for existing deployments.
Changes
Installer
Docs
Tests
No test changes. Installer is a new package, docs are content-only.