Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add information about dynamic static split server islands #10194

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions src/content/docs/en/reference/integrations-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,44 @@ export default {
}
```

<p><Since v="5.1" /></p>

##### Private Config Options

This hook gives you the opportunity to add private config options that are exposed only to integrations.
There are certain options that are not directly exposed to users, but are allowed to be written from integrations.

##### `serverIslandDynamicBase`

**Type:** `string`

The base URL of the exported server islands. This option is not exposed to users,
but can be written from integrations to allow an integration to change the base URL of the exported server islands.

Example usage:

```js
export default {
hooks: {
'astro:config:setup': ({ updateConfig }) => {
updateConfig({
serverIslandDynamicBase: 'https://my-server-islands.com'
})
}
}
}
```

Would result in the following client HTML output:

```html
<script>
//...
let response = await fetch('https://my-server-islands.com/_server-islands/...')
</script>
```


#### `addRenderer` option

**Type:** `(renderer:` [`AstroRenderer`](https://github.com/withastro/astro/blob/fdd607c5755034edf262e7b275732519328a33b2/packages/astro/src/%40types/astro.ts#L872-L883) `) => void;`
Expand Down
Loading