feat(web): hosted-gated Pricing link in the landing nav - #953
Merged
Conversation
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
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.
Adds a top-level Pricing link to the landing page nav, between Product and Resources.
NEXT_PUBLIC_PRICING_PATHis set at build time (lib/site.PRICING_PATH— the same mechanism the sitemap uses, documented there:/pricingis 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 setNEXT_PUBLIC_PRICING_PATH=/pricing, so the hosted site gets the link with no ops change.Startanchor link; plain same-tab navigation (unlike the Resources external links).target) inpage.pricing-nav.hosted.test.tsx; self-host absence asserted inpage.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