Skip to content

Commit

Permalink
docs: add caution about scripts processing when using head config (#1729
Browse files Browse the repository at this point in the history
)

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
  • Loading branch information
jorenbroekema and delucis authored Apr 12, 2024
1 parent 243b010 commit 124d547
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/src/content/docs/reference/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,9 @@ starlight({
});
```

Entries in `head` are converted directly to HTML elements and do not pass through Astro’s [script](https://docs.astro.build/en/guides/client-side-scripts/#script-processing) or [style](https://docs.astro.build/en/guides/styling/#styling-in-astro) processing.
If you need to import local assets like scripts, styles, or images, [override the Head component](/guides/overriding-components/#reuse-a-built-in-component).

#### `HeadConfig`

```ts
Expand Down

0 comments on commit 124d547

Please sign in to comment.