{
  "id": "a8c7133359d50b963b8f1c99",
  "source": "solid:signals",
  "type": "github-document",
  "title": "route-prerendering",
  "content": "---\ntitle: Route Pre-rendering\nuse_cases: \u003e-\n  static site generation, ssg, blog sites, documentation, marketing pages,\n  performance optimization, seo improvement\ntags:\n  - prerender\n  - ssg\n  - static\n  - performance\n  - build\n  - seo\nversion: '1.0'\ndescription: \u003e-\n  Pre-render SolidStart routes to static HTML for faster loads and better SEO.\n  Perfect for blogs, docs, and marketing sites.\n---\n\nRoute pre-rendering powers Static Site Generation (SSG) by producing static HTML pages during the build process.\nThis results in faster load times and better SEO, making it especially useful for content-rich sites such as documentation, blogs, and marketing pages.\nStatic files are served without server-side processing at runtime.\n\nConfigure prerendering for specific routes using the `routes` option\n\n```js { 6 }\nimport { defineConfig } from \"@solidjs/start/config\";\n\nexport default defineConfig({\n  server: {\n    prerender: {\n      routes: [\"/\", \"/about\"]\n    }\n  }\n});\n```\n\nOr to pre-render all routes, you can pass `true` to the `crawlLinks` option\n\n```js { 6 }\nimport { defineConfig } from \"@solidjs/start/config\";\n\nexport default defineConfig({\n  server: {\n    prerender: {\n      crawlLinks: true\n    }\n  }\n});\n```\n\nFor advanced pre-rendering options, refer to [Nitro's documentation](https://nitro.build/config#prerender).\n\n[SolidBase](https://solidbase.dev) simplifies SSG development with built-in support for fast, pre-rendered Markdown and MDX pages.",
  "url": "https://github.com/solidjs/solid-docs/blob/HEAD/src/routes/solid-start/building-your-application/route-prerendering.mdx",
  "metadata": {
    "path": "src/routes/solid-start/building-your-application/route-prerendering.mdx",
    "repo": "solidjs/solid-docs",
    "repo_url": "https://github.com/solidjs/solid-docs.git",
    "size": 1463,
    "source_type": "github"
  },
  "hash": "7714c1bd456755c10fa7903b9574d0f33f454a987fe8a13ce812368f44fe9686",
  "timestamp": "2026-02-23T11:43:00.193945458+01:00"
}