Skip to content

Commit b48758e

Browse files
authored
Merge branch '5.0.0-beta' into loader-api
2 parents ecd7fb9 + e441857 commit b48758e

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

src/content/docs/en/reference/configuration-reference.mdx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -808,20 +808,21 @@ You can override this default value and select a different strategy for any indi
808808

809809
<p>
810810

811-
**Type:** `string`<br />
812-
**Default:** `undefined`<br />
811+
**Type:** `Object`<br />
812+
**Default:** `{route: '/_image', entrypoint: undefined}`<br />
813813
<Since v="3.1.0" />
814814
</p>
815815

816-
Set the endpoint to use for image optimization in dev and SSR. Set to `undefined` to use the default endpoint.
817-
818-
The endpoint will always be injected at `/_image`.
816+
Set the endpoint to use for image optimization in dev and SSR. The `entrypoint` property can be set to `undefined` to use the default image endpoint.
819817

820818
```js
821819
{
822820
image: {
823-
// Example: Use a custom image endpoint
824-
endpoint: './src/image-endpoint.ts',
821+
// Example: Use a custom image endpoint at `/custom_endpoint`
822+
endpoint: {
823+
route: '/custom_endpoint',
824+
entrypoint: 'src/my_endpoint.ts',
825+
},
825826
},
826827
}
827828
```

0 commit comments

Comments
 (0)