fix: added server preconnect url improving the page load time (#10554)

fixes #10236
This commit is contained in:
Rajvir Singh
2025-03-14 23:05:06 +05:30
committed by GitHub
parent 5b7b58c85f
commit 7595d42fef
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,12 @@
import { Helmet } from 'react-helmet-async';
export const ServerPreconnect = () => {
return (
<Helmet>
<link
rel="preconnect"
href={process.env.REACT_APP_SERVER_BASE_URL || 'http://localhost:3000'}
/>
</Helmet>
);
};