---
import { Root } from '../components/Root'
import Prerendered from '../main.astro'
import { initRouter } from '../stores/router'

const { pathname, search } = Astro.url
initRouter(pathname, search)

---

<Prerendered>
  <Root client:load />
</Prerendered>
