Repository navigation
OI1: the site on Workers - #2
Merged
Merged
Conversation
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
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.
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