mirror of
https://github.com/owncast/owncast.git
synced 2024-11-26 23:24:29 +03:00
c05a20a460
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.
9 lines
220 B
TypeScript
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;
|
|
};
|