title: SvelteKit: disable SSR
body: <p>I made an app in Svelte and now I wanted to port it to SvelteKit. My app uses <code>window</code> and <code>document</code> objects, but those aren't available in SSR. Firstly, it threw <code>ReferenceError: window is not defined</code>, but I fixed that by checking if the app is ran in browser. But because of that, my app is not working.</p>
  <p>I'd be glad to get some help.</p>
  <p>Thanks.</p>