Skip to content

Commit 3124366

Browse files
authored
Revise route pre-rendering section in documentation
1 parent 428b84d commit 3124366

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/routes/solid-start/building-your-application/route-prerendering.mdx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
2-
title: "Route pre-rendering"
2+
title: "Route Pre-rendering"
33
---
44

5-
SolidStart offers a way to pre-render pages at build time.
6-
The easiest way to accomplish this is by passing a list of routes to be pre-rendered to the `routes` option.
5+
Route pre-rendering enables Static Site Generation (SSG) by creating static HTML pages at build time. This delivers faster page loads and improves SEO, making it ideal for content-heavy sites like documentation, blogs, or marketing pages. Static files are served without server-side processing at runtime.
6+
7+
To pre-render specific routes, specify the routes option in your configuration file
78

89
```js { 6 }
910
import { defineConfig } from "@solidjs/start/config";
@@ -17,7 +18,7 @@ export default defineConfig({
1718
});
1819
```
1920

20-
When you wish for all your routes to be pre-rendered, you can pass `true` to the `crawlLinks` option:
21+
Or to automatically pre-render all routes, enable the `crawlLinks` option
2122

2223
```js { 6 }
2324
import { defineConfig } from "@solidjs/start/config";
@@ -31,4 +32,6 @@ export default defineConfig({
3132
});
3233
```
3334

34-
For more information on prerender options, check out [Nitro's documentation](https://nitro.build/config#prerender)
35+
For advanced pre-rendering options, refer to [Nitro's documentation](https://nitro.build/config#prerender).
36+
37+
[SolidBase](https://solidbase.dev) simplifies SSG development with built-in support for fast, pre-rendered Markdown and MDX pages.

0 commit comments

Comments
 (0)