Skip to main content

Static generation

generateStaticParams on the root layout lists every combination the build should hold: each locale against each prerendered preference value against each prerendered flag value. For this site that is 6 per page.

  • {"locale":"en","prefs":"-","flags":"-"}
  • {"locale":"en","prefs":"theme~light","flags":"-"}
  • {"locale":"en","prefs":"theme~dark","flags":"-"}
  • {"locale":"en-GB","prefs":"-","flags":"-"}
  • {"locale":"en-GB","prefs":"theme~light","flags":"-"}
  • {"locale":"en-GB","prefs":"theme~dark","flags":"-"}

The accent is not there: it is a stylesheet, so it multiplies nothing. The lang flag is not there either: it is declared with prerender: false, so its variants wait for a first request and are cached then. Both are still served, as the same canonical segments a prerendered copy would have.

Stylesheets the layout links to

  • prefs.accent /theme/accent.css

Stylesheets the pages that use them link to

Declared global: false, so the layout leaves them out and only the download demo links them.

  • flags.arch /platform/arch.css
  • flags.bitness /platform/bitness.css
  • flags.os /platform/os.css

Inspector

Address bar
/en-GB/-/-/demos/static
Rendered as
/en-GB/-/-/-/-/demos/static
Locale
en-GB
Preferences
{}
Flags
{}