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