Server-side rendering

In dev and on Node hosts, Landrr renders HTML on each request using your entry-server.tsx and page modules.

export async function getServerData() {
  return { renderedAt: new Date().toISOString() };
}

export default function Page({ serverData }) {
  return <h1>Hello</h1>;
}

Use getServerData for data that should be available on the server and passed to the client via window.__LANDRR_DATA__.