Repository navigation
fix(landing): hold homepage failures briefly, refuse framable website policies, and tidy what the website move left - #10789
Merged
Merged
Conversation
… 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.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Collaborator
Author
Collaborator
Author
|
@cubic-dev-ai review this PR |
Contributor
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
This branch was previously deployed
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.
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.frame-ancestorsallows any origin other than this one, since it would override the route'sX-Frame-Options: DENY. Leavingframe-ancestorsout is still fine, and the website's production policy (frame-ancestors 'none') is accepted.AuthLegalnow requires its Terms and Privacy links. The/termsand/privacydefaults pointed at pages the platform no longer serves; the only caller already passes the website's URLs.stripVersionSuffixfrom@sim/utils/stringin both the/integrations/*redirect map and the docs index, so they can't drift apart. The docs compile cache and--watchalso key onformatting.tsandstring.ts, which the integration pages render from.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.combecause the app's consent scripts (lib/consent/scripts.ts) load Ahrefs analytics.Type of Change
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/docslib/content/compile.test.tspass.tsc --noEmitclean for packages/auth-ui, packages/deployment-config and apps/docs; biome clean; pre-push hook (affected type-check andgenerate) passed.Checklist
test-auditauthoring gate)