Skip to content

fix(landing): hold homepage failures briefly, refuse framable website policies, and tidy what the website move left - #10789

Merged
waleedlatif1 merged 2 commits into
stagingfrom
fix/site-cutover-final
Dec 5, 2026
Merged

waleedlatif1 merged 2 commits into
stagingfrom
fix/site-cutover-final

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • getWebsiteHomepage: when there's no copy to serve, a fetch failure from the last 10 seconds is the answer without another fetch, so a website that is down doesn't hold each visitor for the full 5 s timeout (10 s for a Markdown request) before the fallback page. A usable copy is still served and refreshed as before.
  • The website's page policy is refused if its frame-ancestors allows any origin other than this one, since it would override the route's X-Frame-Options: DENY. Leaving frame-ancestors out is still fine, and the website's production policy (frame-ancestors 'none') is accepted.
  • AuthLegal now requires its Terms and Privacy links. The /terms and /privacy defaults pointed at pages the platform no longer serves; the only caller already passes the website's URLs.
  • The integration docs slug uses the shared stripVersionSuffix from @sim/utils/string in both the /integrations/* redirect map and the docs index, so they can't drift apart. The docs compile cache and --watch also key on formatting.ts and string.ts, which the integration pages render from.
  • Stale comments that still described the removed landing now describe the root route and the auth shell.

Follow-up to #10759 and #10788, from a final review of the website move. One finding was left as is: the app's CSP keeps analytics.ahrefs.com because the app's consent scripts (lib/consent/scripts.ts) load Ahrefs analytics.

Type of Change

  • Bug fix

Testing

  • lib/website/homepage.test.ts: 43 pass. New: the failure-hold test (a failing website is asked once within 10 s and again after) and the frame-ancestors rows. Both failed on the pre-fix code.
  • next.config.test.ts (every catalog slug maps to a docs page), app/desktop/connect/page.test.tsx, and apps/docs lib/content/compile.test.ts pass.
  • tsc --noEmit clean for packages/auth-ui, packages/deployment-config and apps/docs; biome clean; pre-push hook (affected type-check and generate) passed.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

… policies, and tidy what the website move left

- With no homepage copy to serve, a fetch failure from the last ten seconds
  answers for itself, so a website that is down does not hold each visitor
  for the full timeout before the fallback page.
- The website's page policy is refused if its frame-ancestors allows any
  origin but this one, since it would override the route's X-Frame-Options.
- AuthLegal requires its Terms and Privacy links; its /terms and /privacy
  defaults pointed at pages the platform no longer serves.
- The integration docs slug uses the shared stripVersionSuffix, and the docs
  compile cache and --watch also key on the @sim/utils modules the
  integration pages render from.
- Comments that still described the removed landing now describe the root
  route and auth shell.
@vercel

vercel Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Dec 5, 2026 10:36am UTC

Request Review

@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.

No issues found across 10 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@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 5, 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.

No issues found across 10 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit 458a31f into staging Dec 5, 2026
92 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/site-cutover-final branch December 5, 2026 17:33

This branch was previously deployed

1 inactive deployment
Preview — d8efecc6 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