Skip to content

chore(www): remove the Business launch switch, so every build sells Business - #2427

Merged
MODSetter merged 1 commit into
devfrom
chore/remove-business-switch
Nov 10, 2026
Merged

MODSetter merged 1 commit into
devfrom
chore/remove-business-switch

Conversation

@MODSetter

@MODSetter MODSetter commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

At the maintainer's ask on 10 Nov 2026: www's Business launch switch, NEXT_PUBLIC_BUSINESS_LAUNCHED, is removed. Every build of the site is now the launched site.

What changes

  • Always served:
    • /pricing shows Free, Business and Enterprise, with the "What each licence gets" table;
    • /pricing/business, /ai-for-lawyers, /ai-for-accountants, /jobs/contract-redline and /jobs/security-questionnaire are served and listed in the sitemap.
  • Always listed:
    • the nav's For menu has every group: Who it's for (with Lawyers and Accountants), Jobs and Study tools;
    • the footer and the homepage band list every audience and job page.
  • Launched copy everywhere:
    • /plugins lists the three built-in sources;
    • /mcp-server drops the retired scraper tools and their keywords;
    • the trial, licence and download pages describe the 14-day trial of the jobs.
  • Deleted:
    • the Individual checkout page (/pricing/individual), the pre-launch pricing copy, the "7 platforms" tooltip and the switch module;
    • .env.example loses the switch and the Individual Payment Link.
    • /pricing/individual and the retired scrapers' pages still redirect permanently, as they did with the switch on (checked in the build's routes manifest).
  • Docs:
    • docs/architecture/license/portal.md: launch-day step 11 no longer flips a site switch;
    • the Individual checkout bullet folds into the Business one;
    • the Business terms draft and 09-audience-pages.md record the change.

Before the release that carries this

Without the switch, the site starts selling Business from the deploy that carries this release. Three things the repo ties to that moment now come before it:

  1. Business terms. ADR 0083 says the Business terms replace the live Terms section 5 before Business is sold, after counsel's check.
  2. The lawyer's read. ADR 0086 holds the lawyer page and the contract redline page for a lawyer's review.
  3. Launch-day steps (portal.md, step 11). Set NEXT_PUBLIC_STRIPE_LICENSE_BUSINESS_URL in Vercel before that deploy. Run the backend redeploy, the Keygen setup, the pack publishing and LICENSE_TRIAL_BUSINESS straight after it. The contract redline pack is still unsigned (Contract redline job (ADR 0086): where it stands #2414).

The local app has no launch switch: its Business changes are already unconditional on dev. This PR doesn't touch two other switches, which wait for a decision:

  • SURFSENSE_LOCAL_JOBS_UNLOCKED, the app's developer switch that runs paid jobs without a licence, which the job tests use;
  • LICENSE_TRIAL_BUSINESS on the licence server.

Tests

The tests for the switched-off site go:

  • business-launched.test.ts;
  • the switched-off redirect and plugin-list cases;
  • the two-site nav tests.

The nav test now checks the one bar, Resources and the footer, and that every link resolves to a page.

  • Checks run:
    • pnpm test:unit: 193 of 193 pass.
    • pnpm typecheck: clean.
    • biome check: clean on the touched files; the one info is the nav's pre-existing fragment.
  • pnpm build, with no environment set:
    • /ai-for-lawyers, /jobs/contract-redline and /pricing/business return 200;
    • the homepage band shows five cards and the jobs strip;
    • /pricing has the Business title and the table;
    • the sitemap lists /pricing/business and the four Business pages;
    • /pricing/individual redirects to /pricing/business with a 308.

High-level PR Summary

This PR removes the NEXT_PUBLIC_BUSINESS_LAUNCHED feature switch from the www site, making Business pricing and pages (lawyers, accountants, contract redline, security questionnaire) available in every build. The switch and Individual licence checkout page are deleted, redirects are made permanent, and documentation is updated to reflect that the site now sells Business from the moment this code deploys rather than via a runtime switch.

⏱️ Estimated Review Time: 15-30 minutes

💡 Review Order Suggestion
Order File Path
1 www/.env.example
2 www/features/business-launch/business-launched.mts
3 www/features/business-launch/business-launched.test.ts
4 docs/architecture/license/portal.md
5 plans/community-local/legal/business-terms-draft.md
6 plans/community-local/seo/09-audience-pages.md
7 www/features/business-launch/launch-redirects.mts
8 www/features/business-launch/launch-redirects.test.ts
9 www/next.config.mts
10 www/app/sitemap.ts
11 www/features/site-navigation/site-navigation.ts
12 www/features/site-navigation/site-navigation.test.ts
13 www/components/site/site-nav.tsx
14 www/components/site/site-footer.tsx
15 www/app/(home)/pricing/page.tsx
16 www/app/(home)/pricing/pricing-content.ts
17 www/app/(home)/pricing/business/page.tsx
18 www/app/(home)/pricing/business/business-sections.tsx
19 www/app/(home)/pricing/business/business-content.ts
20 www/app/(home)/pricing/individual/page.tsx
21 www/app/(home)/pricing/individual/individual-content.ts
22 www/app/(home)/pricing/individual/individual-sections.tsx
23 www/app/(home)/pricing/platforms-tooltip.tsx
24 www/app/(home)/pricing/pricing-sections.tsx
25 www/app/(home)/pricing/continue-to-checkout.tsx
26 www/app/(home)/ai-for-lawyers/page.tsx
27 www/app/(home)/ai-for-accountants/page.tsx
28 www/app/(home)/jobs/contract-redline/page.tsx
29 www/app/(home)/jobs/security-questionnaire/page.tsx
30 www/features/audience-pages/audience-metadata.ts
31 www/app/(home)/plugins/page.tsx
32 www/app/(home)/plugins/plugin-browser.tsx
33 www/app/(home)/plugins/plugin-list.ts
34 www/app/(home)/plugins/built-in.test.ts
35 www/app/(home)/mcp-server/page.tsx
36 www/app/(home)/_home/home-audiences.tsx
37 www/app/(home)/_home/home-content.ts
38 www/app/(home)/_home/home-features/visuals/plugins-visual.tsx
39 www/app/(home)/downloads/page.tsx
40 www/app/(home)/license/activate/page.tsx
41 www/app/(home)/license/success/page.tsx
42 www/features/license/license-forms.tsx
43 www/app/(home)/free/[model_slug]/page.tsx
44 www/app/(home)/private-ai-for-business/page.tsx
45 www/features/funnel-attribution/funnel-events.ts
46 www/components/site/guide-steps.tsx
47 www/components/site/site-content.ts

Need help? Join our Discord

Summary by CodeRabbit

  • New Features
    • Business pricing, audience, and job pages are now available on every site build.
    • Navigation and the sitemap consistently include Business pages, audiences, jobs, and study tools.
    • Business checkout can use a configured Stripe payment link, with a contact fallback if none is set.
    • Built-in plugins and trial information now display consistently across the site.
  • Changes
    • /pricing/individual now permanently redirects to /pricing/business.

…usiness

At the maintainer's ask, 10 Nov 2026. NEXT_PUBLIC_BUSINESS_LAUNCHED is gone, and
every build of www is the launched site:

- /pricing shows Free, Business and Enterprise with the licence table, and
  /pricing/business, the lawyer, accountant and job pages are always served and
  listed in the sitemap.
- The nav's For menu, the footer and the homepage band always list every
  audience and job page.
- /plugins lists the three built-in sources, the MCP page drops the retired
  scraper tools, and the trial, licence and download copy describes the 14-day
  trial of the jobs.
- The Individual checkout page and the pre-launch pricing copy are deleted;
  /pricing/individual and the retired scrapers' pages redirect permanently, as
  they did with the switch on.
- The tests for the switched-off site go; the nav, redirect and plugin tests
  check the one site.
- docs: the portal runbook no longer flips a site switch. The site sells
  Business from the deploy that carries the release, so the launch-day steps,
  the Business terms and the lawyer's read come before it.
@vercel

vercel Bot commented Nov 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
surf-sense-frontend Ignored Ignored Nov 10, 2026 12:53am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

The site no longer uses a Business launch flag to control page availability, pricing, navigation, or related content. The Individual pricing page is removed and redirects to Business. The portal and release plans now describe publication with the Business-sale release.

Changes: Business site publication and sales

Layer / File(s) Summary
Publish audience and job pages
www/features/audience-pages/*, www/app/(home)/ai-for-*/page.tsx, www/app/(home)/jobs/*, www/app/(home)/_home/*, www/app/(home)/private-ai-for-business/page.tsx, www/features/site-navigation/*, www/components/site/site-nav.tsx, www/components/site/site-footer.tsx, www/app/sitemap.ts, www/features/business-launch/business-launched.mts, www/features/business-launch/business-launched.test.ts
Audience and job pages no longer use launch-gated rendering or metadata. Home cards, job links, navigation, footer, and sitemap use fixed configurations. The launch-state helper and its test were removed.
Consolidate pricing and redirects
www/app/(home)/pricing/*, www/app/(home)/pricing/individual/*, www/features/business-launch/launch-redirects.*, www/next.config.mts, www/features/funnel-attribution/funnel-events.ts, www/.env.example
The main pricing page uses Business pricing content, and the Individual pricing page is removed. Its redirect to Business is always included. Business pricing metadata and rendering no longer depend on launch state.
Fix plugin, trial, and license content
www/app/(home)/plugins/*, www/app/(home)/_home/home-content.ts, www/app/(home)/_home/home-features/visuals/plugins-visual.tsx, www/app/(home)/downloads/page.tsx, www/app/(home)/free/[model_slug]/page.tsx, www/app/(home)/license/*, www/features/license/license-forms.tsx, www/app/(home)/mcp-server/page.tsx
Plugin listings and related page copy no longer select launch-state variants. Trial and license pages use fixed Business job descriptions. The MCP page consistently describes knowledge-base tools.
Update Business release guidance
docs/architecture/license/portal.md, plans/community-local/legal/business-terms-draft.md, plans/community-local/seo/09-audience-pages.md, www/components/site/guide-steps.tsx
The portal instructions and plans describe Business publication with the sale release instead of a site launch switch. The plans also specify the fixed navigation and review timing.

Estimated code review effort: 4 (Complex) | ~60 minutes

Change: Feature

Possibly related PRs

  • MODSetter/SurfSense#2393: This PR removes the launch gate that #2393 added for Business pricing, plugin listings, and redirects.
  • MODSetter/SurfSense#2413: Both PRs update Business job trial and sales content for the paid-job release.
  • MODSetter/SurfSense#2391: Both PRs address the end of Individual sales and the Business release, including retirement of the Individual pricing page.
Merge Risk: Moderate · up to 26adb

This change makes every build of the site sell Business. If the site is deployed before the backend and license packs are ready, early buyers could receive licenses permanently missing the contract-redline job. Fix the launch-day ordering in the runbook before merging, and keep the listed pre-deploy prerequisites in view.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@MODSetter
MODSetter merged commit 8e8c55b into dev Nov 10, 2026
29 of 31 checks passed
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