Skip to content

Commit

Permalink
docs(router): Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ajit Panigrahi <[email protected]>
  • Loading branch information
santoshyadavdev and ajitzero authored Dec 4, 2023
1 parent ca70029 commit 9c2db26
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/docs-app/docs/features/server/static-site-generation.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ mapping of the pages' `<loc>` and `<lastmod>` properties.
</urlset...>
```

### Post Rednering Hooks
### Post-rendering Hooks

Analog supports the post-rendering hooks during the prerendering process. The use case for post rendering hooks can be used for inlining critical css, add/remove scripts in HTML files etc.
Analog supports the post-rendering hooks during the prerendering process. The use case for post-rendering hooks can be inlining critical CSS, adding/removing scripts in HTML files, etc.

The sample code below showw how you can use `postRenderingHooks` in your code.
The sample code below shows how to use `postRenderingHooks` in your code:

```ts
import analog from '@analogjs/platform';
Expand Down Expand Up @@ -128,9 +128,9 @@ export default defineConfig(() => {
});
```

The `PrerenderRoute` gives you information about `route`,`contents`,`data` and `fileName` which can be useful for making changes to yout content duing prerendering phase.
The `PrerenderRoute` gives you information about `route`, `contents`, `data`, and `fileName`, which can be useful for making changes to your content during the prerendering phase.

Below is an small example where we can add append a script to include google analytics during prerendering process using `postRenderingHooks`
Below is a small example where we can append a script to include Google Analytics during the prerendering process using `postRenderingHooks`:

```ts
/// <reference types="vitest" />
Expand Down

0 comments on commit 9c2db26

Please sign in to comment.