Skip to content

chore(marketing): remove the in-app /pricing page - #119

Merged
gkhngyk merged 1 commit into
mainfrom
chore/remove-pricing-page
May 28, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
chore/remove-pricing-page

Conversation

@gkhngyk

@gkhngyk gkhngyk commented May 28, 2026

Copy link
Copy Markdown
Contributor

Closes #113.

What

`net diff: 3 files changed, 7 insertions(+), 364 deletions(-)`

Why

The in-app pricing page was a stale copy of marketing content:

Pricing as a public marketing surface belongs on `ansvisor.com`, not the authenticated app subdomain. Removing the duplicate kills both drift bugs in one move and prevents the same drift from recurring.

Out of scope

  • `config/plans.ts` `pricing.monthly` fields — still consumed by `plan-switcher.tsx` and `billing-section.tsx` for the authenticated Settings → Plan & Billing flow
  • The marketing site itself — separate codebase; the drifted numbers / GitHub link need fixing there if they also exist on `ansvisor.com/pricing`, but that's not this repo

Verified

  • ✅ `yarn typecheck` clean after clearing the stale `.next/types/validator.ts` stub (the validator file gets regenerated on next build with no pricing entry)
  • ✅ `yarn format:check` clean
  • ✅ No remaining internal references to `/pricing` in the app

Closes #113. Pricing lives on ansvisor.com now — the in-app duplicate
had been drifting from config/plans.ts (Starter "4 platforms / 10
prompts" vs the real 2 / 50) and still pointed its bottom CTA at a
placeholder GitHub URL. Removing the page solves both at once, keeps
the app subdomain focused on the authenticated dashboard surface, and
matches the existing chore(seo) decision to block the app subdomain
from search indexing.

- delete web/src/app/[locale]/(marketing)/pricing/page.tsx
- drop the marketing.pricing.* block from web/messages/en.json (the
  only locale that still carried it)
- proxy.ts: 302 redirect /pricing → https://ansvisor.com/pricing so
  any stale links / bookmarks land on the canonical page instead of
  404'ing

The in-app Settings → Plan & Billing plan switcher and the pricing
fields on config/plans.ts stay as-is — they're the authenticated
upgrade path and are still consumed by billing-section.tsx and
plan-switcher.tsx.
@gkhngyk
gkhngyk merged commit fce11e4 into main May 28, 2026
2 checks passed
@gkhngyk
gkhngyk deleted the chore/remove-pricing-page branch May 28, 2026 20:09

This branch was successfully deployed

1 active deployment
Preview — f3de162b Deployed May 28, 2026 by vercel[bot]
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.

chore(marketing): remove the in-app /pricing page (pricing lives on ansvisor.com now)

1 participant