File tree Expand file tree Collapse file tree
src/content/docs/en/reference Expand file tree Collapse file tree Original file line number Diff line number Diff 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```
You can’t perform that action at this time.
0 commit comments