Skip to content

chore(landing): remove the public website now served by simstudioai/site - #10759

Merged
waleedlatif1 merged 17 commits into
stagingfrom
chore/site-cutover-cleanup
Dec 5, 2026
Merged

waleedlatif1 merged 17 commits into
stagingfrom
chore/site-cutover-cleanup

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Stacks on #10757 (model pages move to docs); its commit is the first one here. Review only the second commit.

Release only after the website serves public traffic. Release order from simstudioai/infra#594: docs → provision and verify landing → enable marketing routes → release this platform extraction. Rolling back means restoring the previous platform image first, then disabling marketing routing.

What changes

  • / stays on the platform (app/route.ts, lib/website/homepage.ts):
    • session cookie hint → app entry (/home), Cache-Control: private, no-store, Vary: Cookie
    • self-hosted → /login (also for ?home)
    • Sim Cloud, anonymous (or ?home) → the website's static root fetched from LANDING_INTERNAL_ORIGIN: bare http(s)://host[:port] only, 5 s deadline covering headers and body, 2 MiB cap, text/html only, 3xx refused (redirect: 'manual'), upstream Set-Cookie refused, no visitor headers forwarded, only the upstream CSP carried over (default mirrors the site's nginx policy, incl. connect-src https://sim-sim.inth.app). Any failure → 503 minimal page linking /login, noindex. Unset or empty origin (landing disabled) → /login.
  • /integrations/* → 308 to the docs page for every catalog, docs and retired slug; anything else under /integrations → docs index. /models/* from feat(docs): move the model pages into the docs and redirect /models there #10757 unchanged.
  • Removed (the ALB routes these to the site): the (landing) route group, blog/library/changelog/customer content and public assets, sitemap.xml, robots.txt, llms*.txt, changelog.xml, /index.md, /library.md, Markdown negotiation at /, and the site-owned redirects (building/studio/blog/library/comparison/partners/scheduled-tasks/feeds/junk paths).
  • Removed landing-only code: contact and integration-request APIs, landing libs (content, blog, library, compare, customers, ashby, public changelog registry), Google Ads demo conversion and X pixel, Cal.com/X/changelog-media CSP allowances, landing theme store and CSS tokens, library cover/artwork generators, check:library-content, IndexNow pinger, landing-seo-live and indexnow CI jobs, Docker content copy, and dependencies (@calcom/embed-react, next-mdx-remote, rehype-*, gray-matter, @vercel/og, opentype.js and sharp at the root, root @mdx-js/mdx).
  • Kept: /api/demo-requests (+ /bookings), short links (/discord /slack /x /linkedin /github /team /security /trust /docs /academy), icons and manifest, adds /apple-touch-icon.png, share-preview font, email/brand/static assets, /enterprise/claim, /knowledge/github, /cli/auth, /desktop/*, /sim/*.
  • Legal links (auth footer, email footer, consent banner, cookie settings) point at https://www.sim.ai/..., since self-hosted no longer serves those pages.
  • New env var LANDING_INTERNAL_ORIGIN (set by infra#594; empty while landing is disabled).

Verification

  • lib/website/homepage.test.ts runs against a real loopback HTTP server. It covers success with no visitor headers forwarded, the default CSP, slow headers, a stalled body, oversized responses (declared and chunked), non-HTML, redirects (not followed), Set-Cookie, error statuses, invalid origins and an unreachable origin. I removed each guard in turn and watched its test fail.
  • app/route.test.ts covers the success headers, the fallback when the upstream misbehaves, an unset or empty origin, and that self-hosted makes no upstream contact. proxy.test.ts covers root routing.
  • scripts/test-landing-seo-e2e.ts (CI seo group) is rewritten to check what the platform still answers publicly: / goes to sign-in, every integration and model redirects to docs, short links and icons resolve, /api/demo-requests is still routed, and site-owned paths 404.

@vercel

vercel Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
docs Ready Ready Preview Dec 5, 2026 8:53am UTC

Request Review

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 2000 files

Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/lib/model-catalog/catalog.ts Resolved
Comment thread scripts/generate-model-docs.ts Resolved
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 2000 files

Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.

Turn on auto-fix | Re-trigger cubic

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="apps/sim/lib/model-catalog/catalog.ts">

<violation number="1" location="apps/sim/lib/model-catalog/catalog.ts:956">
P3: Model pages without a `cachedInput` rate still advertise a cached input cost in their meta description. Include that phrase only when `model.pricing.cachedInput` is defined.</violation>
</file>

Comment thread apps/sim/lib/model-catalog/catalog.ts Resolved
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 2000 files

Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/lib/model-catalog/catalog.ts Resolved
Comment thread apps/sim/lib/model-catalog/catalog.ts Resolved
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 2000 files

Note: This PR contains a large number of files. cubic selects up to 200 of the highest-priority eligible files for this review, so some files may not have been reviewed.
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.

Turn on auto-fix | Re-trigger cubic

Comment thread apps/sim/lib/model-catalog/catalog.ts Resolved
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@blacksmith-sh

This comment has been minimized.

The marketing site moved to its own static service. The load balancer sends
its paths there (simstudioai/infra#594), so the platform stops serving them
and keeps only what it must answer.

- / stays platform-owned: a session cookie hint goes to the app entry,
  self-hosted deployments go to sign-in, and anonymous Sim Cloud visitors get
  the website's homepage from LANDING_INTERNAL_ORIGIN through a bounded
  private fetch (5 s, 2 MiB, HTML only, no redirects, no upstream cookies, no
  visitor headers forwarded) with a minimal sign-in fallback page.
- /integrations/* redirects to each integration's docs page, by catalog,
  docs or retired slug, alongside the /models redirects from the docs move.
- Removes the (landing) route group, blog/library/changelog/customer content
  and assets, sitemap, robots, llms.txt, feeds, Markdown negotiation, the
  contact and integration-request APIs, landing-only libs, scripts, CI jobs,
  dependencies, CSP allowances (Cal.com, X pixel, changelog media) and the
  Docker content copy. Keeps /api/demo-requests, short links, icons (adds
  /apple-touch-icon.png), share-preview font and email assets.
- Legal links now point at the website, since self-hosted no longer serves
  those pages.
knip found the marketing-only icons, emcn and renderer exports, root
devDependencies and the cookie-preferences trigger that only the landing
used. The MCP host e2e no longer expects the Markdown 404, which left with
the website.
…l load

- The website's page policy is carried over only when it is the single
  policy and keeps script-src (or default-src) free of 'unsafe-inline',
  'unsafe-eval', *, data: and http:; a missing, repeated or unsafe policy,
  or an empty page, falls back to the sign-in page. No copy of the policy
  lives here any more.
- The homepage is cached for a minute in one lru-cache entry, concurrent
  misses share one fetch, and the last good page is served for up to an
  hour while the website fails. Failures log at most once a minute and the
  503 fallback logs as a degraded response, not a server error.
- The proxy runs its scanner filter before handing / to the route.
- Restores robots.txt for self-hosted deployments and hosts the website
  does not answer, the newsletter hero artwork (with its immutable cache
  rule), and keeps the IndexNow key.
- The Slack docs page carries the App Directory install steps, privacy
  line and paid-plan AI disclaimer that /integrations/slack used to show.
- Settings' Sim home button navigates by document, since / is outside the
  app router; the mobile e2e expects self-hosted to land back in the app.
A GET or HEAD of / whose Accept names text/markdown at a nonzero quality
gets the website's /index.md through the same bridge (private fetch, no
visitor data, size and time bounds, no redirects or cookies), checked as
text/markdown instead of HTML and cached in its own entry. It carries
Link: <https://www.sim.ai/>; rel="canonical", and every answer at /
varies on Accept and Cookie. text/markdown;q=0 keeps the HTML page.
- Drops the website-only PostHog events, hero animations, auth button and
  landing theme tokens, the landing workflow seed and its home branch, the
  unused LandingPromptStorage.hasPrompt, README-era static GIFs and the
  unused landing logo; keeps the logo, newsletter images and IndexNow key
  that delivered emails and the site still load.
- The proxy now runs for /enterprise/claim (its CSP and indexing policy);
  the matcher no longer skips paths that have no files.
- Enterprise claims and GitHub knowledge setup keep their light theme.
- The landing workflow templates move to the corpus test fixtures.
- The seo e2e group becomes public-routes and also checks the IndexNow key.
- Drops the CI prerender assertion for blog and library posts and updates
  stale comments and docs that described the website.
- A homepage over a minute old is served at once while one background
  refresh runs (allowStale), so a hanging website no longer delays every
  visitor; past the hour cap the visitor waits for a refresh instead of
  getting a 503 when the website has recovered.
- A Markdown request falls back to the HTML homepage when the website has
  no Markdown copy or it fails; the 503 is served only when HTML fails too.
- The page-policy check also covers script-src-elem and script-src-attr and
  refuses bare scheme sources and wildcard hosts; the site's production
  policy is a passing fixture.
- The real refusal reason is logged for a cold failure and for a stale
  serve, with separate throttles for unavailable, stale and Markdown.
lru-cache's Status takes the key, value and fetch-context types.
The website's X-Robots-Tag (noindex on a non-indexable build) now reaches
the HTML and Markdown answers at /, so the homepage isn't indexable there
while the website's own copy isn't. Only known directives pass; a header
with anything else is dropped.
…es had

The website's /integrations/* addresses now redirect to the docs, so the
docs pages keep what made those pages rank:

- Each integration page's title reads "<Name> integration for AI agents"
  (or the hand-tuned title the website used, such as GitHub's and Apollo's),
  with the website's catalog-built description.
- Each page ends with the website's FAQ, built from the catalog (tools,
  triggers, auth) or the hand-tuned one, shown on the page and as FAQPage
  structured data. New integrations get both with no extra step.
- The integrations index lists every integration by category with the
  catalog totals, and carries the website's five catalog questions.
- A test checks every former integration address redirects to a docs page
  that exists.
…arkdown form

The docs compiler allows only listed MDX components; the catalog now is
one, and the Markdown copy of the integrations index lists the same
categories and integrations.
- The integrations index's catalog and each integration page's FAQ are
  expanded into the page's Markdown at compile time, so they are in the
  table of contents, the anchor and link checks, the Markdown copy,
  llms-full.txt and search, each under its own section. FAQPage structured
  data stays, and TechArticle uses the search description.
- The compile cache now invalidates when the catalog, its totals or the
  integration SEO data change.
- The index description states the counts correctly.
- The route test for indexing directives checks an allowlisted directive
  passes through.

This branch was successfully deployed

1 active deployment
Preview — 8c7866b5 Deployed Dec 5, 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.

1 participant