Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

With SvelteKit, in which file should I put the page options in?

$
0
0

According to the docs of page options here, it seems that prerender option could be put in either client files (namely +page.js and +layout.js) or server files (namely +page.server.js and +layout.server.js).

My questions are:

  1. In which file should I put the page options in? Or either client file or server file is OK?
  2. Are there any page option that can only be put in server/client files?

Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>