Skip to content

BH1: the marketing site on Workers - #2

Merged
pullely merged 1 commit into
mainfrom
orun/BH-2-the-marketing-site-on-workers
Oct 28, 2026
Merged

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

Conversation

@pullely

@pullely pullely commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

basehub-ai/marketing-website-template (7cfc403) in apps/web: Next.js 16.3.8 (upstream 16.0.9; OpenNext 1.20.11 supports 16.3), every other dependency at upstream's locked version, built by next build — not basehub && next build, whose codegen needs a token: the template's committed basehub-types.d.ts are the types — then @opennextjs/cloudflare (standalone output, the static-assets incremental cache) into one Worker with Static Assets. Pages stay force-static with generateStaticParams, as upstream. BASEHUB_TOKEN is read at build and inlined into the server bundle. Four wrappers in src/lib/basehub (client, Pump, events, image) stand between the template and the SDK: connected they delegate unchanged; with no token every query is answered from bundled sample content (five pages, three posts, three releases, images in public/sample) projected onto the same selection the SDK would send, under a "connect BaseHub" bar, with no toolbar, no search box and form events dropped — never a 500. Geist is self-hosted (next/font/local, OFL shipped); the origin comes from NEXT_PUBLIC_SITE_URL per environment, with app/robots.ts in place of upstream's static files naming BaseHub's demo domain; /api/health says which content the build read. The site's name is one seam (SITE_NAME in src/lib/site.ts). tests/web: the identity, the projection, the sample's links, images, section types and fragments, and the connected/unconnected switch. typecheck, lint, test and build are green; wrangler dev serves every page, post and release, the feeds, sitemap, robots and health check, and a 404. The Worker is 3.1 MiB gzipped: Workers Paid. Upstream carries no licence (no LICENSE file, no package.json license, none on GitHub); it is credited, and none of its demo content is copied.

🤖 Generated with Claude Code

basehub-ai/marketing-website-template (7cfc403) in apps/web: Next.js 16.3.8 (upstream 16.0.9; OpenNext 1.20.11 supports 16.3), every other dependency at upstream's locked version, built by next build — not `basehub && next build`, whose codegen needs a token: the template's committed basehub-types.d.ts are the types — then @opennextjs/cloudflare (standalone output, the static-assets incremental cache) into one Worker with Static Assets. Pages stay force-static with generateStaticParams, as upstream. BASEHUB_TOKEN is read at build and inlined into the server bundle. Four wrappers in src/lib/basehub (client, Pump, events, image) stand between the template and the SDK: connected they delegate unchanged; with no token every query is answered from bundled sample content (five pages, three posts, three releases, images in public/sample) projected onto the same selection the SDK would send, under a "connect BaseHub" bar, with no toolbar, no search box and form events dropped — never a 500. Geist is self-hosted (next/font/local, OFL shipped); the origin comes from NEXT_PUBLIC_SITE_URL per environment, with app/robots.ts in place of upstream's static files naming BaseHub's demo domain; /api/health says which content the build read. The site's name is one seam (SITE_NAME in src/lib/site.ts). tests/web: the identity, the projection, the sample's links, images, section types and fragments, and the connected/unconnected switch. typecheck, lint, test and build are green; wrangler dev serves every page, post and release, the feeds, sitemap, robots and health check, and a 404. The Worker is 3.1 MiB gzipped: Workers Paid. Upstream carries no licence (no LICENSE file, no package.json license, none on GitHub); it is credited, and none of its demo content is copied.

Co-Authored-By: Claude <noreply@anthropic.com>
Orun-Task: BH-2
@pullely
pullely merged commit bb6d584 into main Oct 28, 2026
2 checks passed
@pullely
pullely deleted the orun/BH-2-the-marketing-site-on-workers branch October 28, 2026 20:51
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