owncast/web/pages/index.tsx
Gabe Kangas c05a20a460
Use built-in Next layout support + lazy load
Instead of doing manual layout switching use the Nextjs nested layout
support. Also add some additional lazy loading of components. This is to
work on performance score re: #2167.
2023-01-09 01:08:24 -08:00

9 lines
220 B
TypeScript

import { ReactElement } from 'react';
import { Main } from '../components/layouts/Main';
export default function Home() {
return <Main />;
}
Home.getLayout = function getLayout(page: ReactElement) {
return page;
};