Skip to content

Commit

Permalink
docs: add caution about scripts processing when using head config
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenbroekema committed Apr 9, 2024
1 parent ca031c0 commit 89ea00d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 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,11 @@ starlight({
});
```

:::caution
Scripts are placed into head using the `set:html` directive which is similar to using `is:inline` in that it [precludes these scripts from being processed by Astro](https://docs.astro.build/en/guides/client-side-scripts/#opting-out-of-processing).
This means that if you want to include a local script and you need this to be processed, you'll probably need to [override or extend the Head component](/guides/overriding-components/#reuse-a-built-in-component).
:::

#### `HeadConfig`

```ts
Expand Down

0 comments on commit 89ea00d

Please sign in to comment.