improvement(platform): landing page cleanup, MX cache fixes, and auth util extraction#3683
Conversation
…Features, RESOURCE_TYPE_LABEL
…cache entries on lookup
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Email MX disposable-backend caching was tightened by adding a bounded (FIFO-evicted) MX cache, explicitly evicting expired entries on lookup, and caching failures/timeouts for a short TTL to reduce repeated DNS work. Landing page cleanup removes unused constants/variables from Written by Cursor Bugbot for commit 730c9ae. Configure here. |
Greptile SummaryThis PR is a clean-up and improvement pass covering dead code removal in the enterprise landing component, anchor link fixes for Key changes:
Confidence Score: 3/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Login / SSO Form renders] --> B{callbackUrl param present?}
B -- No --> C[callbackUrl = '/workspace']
B -- Yes --> D[validateCallbackUrl]
D --> E{url starts with '/'?}
E -- Yes --> F[valid ✓]
E -- No --> G{window defined?}
G -- Yes --> H{url starts with window.location.origin?}
H -- Yes --> F
H -- No --> I[invalid ✗ → fallback '/workspace']
G -- No --> J["currentOrigin = '' → url.startsWith('') = true ⚠️"]
J --> F
F --> K[callbackUrl = validated param]
I --> C
C --> L[Auth sign-in with safe callbackUrl]
K --> L
|
…ion on cache update
|
The redundant |
Summary
Type of Change
Testing
Tested manually
Checklist