Performance improvements and Dockerfile update
This commit is contained in:
@ -1,6 +1,9 @@
|
||||
import { createRootRoute, Outlet, HeadContent, Scripts } from '@tanstack/react-router';
|
||||
import { LazyMotion } from 'framer-motion';
|
||||
import appCss from './globals.css?url';
|
||||
|
||||
const loadFeatures = () => import('framer-motion').then(res => res.domAnimation);
|
||||
|
||||
export const Route = createRootRoute({
|
||||
head: () => ({
|
||||
meta: [
|
||||
@ -68,7 +71,9 @@ function RootLayout() {
|
||||
Since the Inter Google Font is loaded via the stylesheet above, it will automatically apply
|
||||
if configured in Tailwind CSS. */}
|
||||
<body>
|
||||
<Outlet />
|
||||
<LazyMotion features={loadFeatures} strict>
|
||||
<Outlet />
|
||||
</LazyMotion>
|
||||
<Scripts />
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user