Skip to content

OI1: the site on Workers - #2

Merged
pullely merged 1 commit into
mainfrom
orun/OI-2-the-site-on-workers
Nov 12, 2026
Merged

pullely merged 1 commit into
mainfrom
orun/OI-2-the-site-on-workers

Conversation

@pullely

@pullely pullely commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

vercel/on-demand-isr (2e96485, the template behind Vercel's On-Demand ISR) in apps/web as one Cloudflare Worker with Static Assets (cloudflare-workers-assets-turbo), its page and data cache in an R2 bucket provisioned per environment by infra/terraform/cloudflare-r2 and wired into wrangler.jsonc from the root's published document, its tag cache and revalidation queue in Durable Objects (DOShardedTagCache, DOQueueHandler, created by the config's migration). The template's tree is kept — app/page.tsx, app/[id] (the issue and its comments, Markdown by marked, code by highlight.js), app/explanation.tsx, app/time-ago.tsx, app/icons.tsx, app/api/webhook, styles/Home.module.scss (sass), its avatar and its MIT LICENSE.md — on Next 15.3.6 → 15.5.29 with @opennextjs/cloudflare 1.20.16, both pinned, experimental.useCache and inlineCss kept; output standalone, images unoptimized, open-next.config.ts with the R2 incremental cache, sharded tag cache and DO queue, no populateCache (the build's prerender is the sample page; each deploy's first visit renders with the Worker's settings). lib/settings.ts reads GITHUB_APP_ID, GITHUB_APP_PK_PEM and GITHUB_WEBHOOK_SECRET per request from the Worker's env; lib/github.ts reads the repository named by app/site.ts's SOURCE_URL (upstream: nextjs/on-demand-isr) through its owner's installation, its jsonwebtoken RS256 JWT unchanged; with no App the readers answer three sample issues under a notice (lib/sample.ts, app/connect-notice.tsx); the webhook answers 503 until its secret is set (upstream keyed its HMAC with ''), signed deliveries as upstream; /api/health; the title reads SITE_NAME. apps/web/component.yaml unsets the App's settings for the build and pushes them to the Worker after it (tooling/wire/worker-secrets.mjs; a verify lane pushes nothing). tests/web (vitest, 35 tests): the seam, the settings, the App's JWT verified with its public key and the installation token against an in-process GitHub, the readers, the webhook's signature check and the paths it revalidates, /api/health, the pages rendered. The Worker is about 1.3 MiB gzipped (Workers Free). typecheck, lint, test and build are green.

🤖 Generated with Claude Code

vercel/on-demand-isr (2e96485, the template behind Vercel's On-Demand ISR) in apps/web as one Cloudflare Worker with Static Assets (cloudflare-workers-assets-turbo), its page and data cache in an R2 bucket provisioned per environment by infra/terraform/cloudflare-r2 and wired into wrangler.jsonc from the root's published document, its tag cache and revalidation queue in Durable Objects (DOShardedTagCache, DOQueueHandler, created by the config's migration). The template's tree is kept — app/page.tsx, app/[id] (the issue and its comments, Markdown by marked, code by highlight.js), app/explanation.tsx, app/time-ago.tsx, app/icons.tsx, app/api/webhook, styles/Home.module.scss (sass), its avatar and its MIT LICENSE.md — on Next 15.3.6 → 15.5.29 with @opennextjs/cloudflare 1.20.16, both pinned, experimental.useCache and inlineCss kept; output standalone, images unoptimized, open-next.config.ts with the R2 incremental cache, sharded tag cache and DO queue, no populateCache (the build's prerender is the sample page; each deploy's first visit renders with the Worker's settings). lib/settings.ts reads GITHUB_APP_ID, GITHUB_APP_PK_PEM and GITHUB_WEBHOOK_SECRET per request from the Worker's env; lib/github.ts reads the repository named by app/site.ts's SOURCE_URL (upstream: nextjs/on-demand-isr) through its owner's installation, its jsonwebtoken RS256 JWT unchanged; with no App the readers answer three sample issues under a notice (lib/sample.ts, app/connect-notice.tsx); the webhook answers 503 until its secret is set (upstream keyed its HMAC with ''), signed deliveries as upstream; /api/health; the title reads SITE_NAME. apps/web/component.yaml unsets the App's settings for the build and pushes them to the Worker after it (tooling/wire/worker-secrets.mjs; a verify lane pushes nothing). tests/web (vitest, 35 tests): the seam, the settings, the App's JWT verified with its public key and the installation token against an in-process GitHub, the readers, the webhook's signature check and the paths it revalidates, /api/health, the pages rendered. The Worker is about 1.3 MiB gzipped (Workers Free). typecheck, lint, test and build are green.

Co-Authored-By: Claude <noreply@anthropic.com>
Orun-Task: OI-2
@pullely
pullely merged commit f4802e6 into main Nov 12, 2026
2 checks passed
@pullely
pullely deleted the orun/OI-2-the-site-on-workers branch November 12, 2026 03:20
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