fix(media): resolve 400 Bad Request on next/image proxy, add auto scroll to top on route change, disable swagger in prod, and fix dev ports
Deploy Canina / deploy (push) Successful in 1m51s
E2E Playwright Tests / Run Full E2E & Security Suites (push) Failing after 7s

This commit is contained in:
parsa aghaei committed 2026-08-29 13:37:50 +03:30
1 parent 2d54fc8208
commit c7d7ac3aa3
22 files changed
+9862 -9779

No files matched your search

+2 -19
View File
@@ -57,27 +57,10 @@ export default function ClientLayout({ children }: { children: React.ReactNode }
}
}, [fetchProfile, fetchSettings]);
// Handle scroll position tracking per pathname for reliable mobile back navigation
// Scroll to top on navigation / pathname change
useEffect(() => {
if (typeof window === 'undefined') return;
const key = `scroll_pos_${pathname}`;
const savedPos = sessionStorage.getItem(key);
if (savedPos !== null) {
const targetY = parseInt(savedPos, 10);
requestAnimationFrame(() => {
window.scrollTo({ top: targetY, behavior: 'instant' });
});
}
const handleScroll = () => {
sessionStorage.setItem(`scroll_pos_${pathname}`, window.scrollY.toString());
};
window.addEventListener('scroll', handleScroll, { passive: true });
return () => {
window.removeEventListener('scroll', handleScroll);
};
window.scrollTo({ top: 0, left: 0, behavior: 'instant' });
}, [pathname]);
// Check Maintenance Mode (Admin / Partner bypass)