Skip to content

Commit 6f59ab1

Browse files
committed
docs(sanity): document baseURL option
1 parent 137ee63 commit 6f59ab1

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

docs/content/3.providers/sanity.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,23 @@ export default defineNuxtConfig({
2424
})
2525
```
2626

27+
## Options
28+
29+
### `baseURL`
30+
31+
Override the default Sanity CDN URL (`https://cdn.sanity.io/images`). Useful for custom CDN or proxy setups, or [Enterprise custom domains](https://www.sanity.io/docs/custom-cdn-domain).
32+
33+
```ts [nuxt.config.ts]
34+
export default defineNuxtConfig({
35+
image: {
36+
sanity: {
37+
projectId: 'yourprojectid',
38+
baseURL: 'https://your-custom-cdn.example.com/images',
39+
}
40+
}
41+
})
42+
```
43+
2744
## Modifiers
2845

2946
The Sanity provider supports a number of additional modifiers. For a full list, check out the [Sanity documentation](https://www.sanity.io/docs/image-urls). All of the modifiers mentioned in the Sanity docs are supported, with the following notes.

0 commit comments

Comments
 (0)