Skip to content

feat(web): hosted-gated Pricing link in the landing nav - #953

Merged
jiashuoz merged 1 commit into
mainfrom
feat/marketing-nav-pricing
Aug 28, 2026
Merged

feat(web): hosted-gated Pricing link in the landing nav#953
jiashuoz merged 1 commit into
mainfrom
feat/marketing-nav-pricing

Conversation

@jiashuoz

Copy link
Copy Markdown
Member

Adds a top-level Pricing link to the landing page nav, between Product and Resources.

  • Hosted-gated via the existing precedent: renders iff NEXT_PUBLIC_PRICING_PATH is set at build time (lib/site.PRICING_PATH — the same mechanism the sitemap uses, documented there: /pricing is served by the hosted deployment's proxy from the private ops repo; a self-host build has no such route, so unset renders nothing rather than a 404). The prod build args already set NEXT_PUBLIC_PRICING_PATH=/pricing, so the hosted site gets the link with no ops change.
  • Styled identically to the existing Start anchor link; plain same-tab navigation (unlike the Resources external links).
  • Tests: hosted branch (env set pre-import → link renders with the configured href, no target) in page.pricing-nav.hosted.test.tsx; self-host absence asserted in page.test.tsx. Full web suite: 886/886 green; lint has 0 errors (2 pre-existing warnings elsewhere).

Motivation: the pricing page currently has no inbound link from the site nav at all, and the usage-based pricing v1 launch (e2a#949, ops #340) makes it a page we actively want visitors to find. Intended to ride the v1.8.1 cut.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ScEpytuD7GvaXEssvJ2W32

Renders a plain Pricing link between the Product and Resources menus iff
NEXT_PUBLIC_PRICING_PATH is set at build time — the existing lib/site
precedent: /pricing is served by the hosted deployment's proxy from outside
this app, so a self-host build without the env var renders nothing rather
than a 404. Styled identically to the Start anchor link.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ScEpytuD7GvaXEssvJ2W32
@jiashuoz
jiashuoz merged commit 00ec581 into main Aug 28, 2026
47 of 48 checks passed
@jiashuoz
jiashuoz deleted the feat/marketing-nav-pricing branch August 28, 2026 19:22
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.

1 participant