2
0
mirror of https://github.com/owncast/owncast.git synced 2024-10-10 19:16:02 +00:00
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: .
2023-01-09 01:08:24 -08:00

10 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;
};