mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
19 lines
451 B
Markdown
19 lines
451 B
Markdown
|
---
|
||
|
'astro': major
|
||
|
---
|
||
|
|
||
|
The `image.endpoint` config now allow customizing the route of the image endpoint in addition to the entrypoint. This can be useful in niche situations where the default route `/_image` conflicts with an existing route or your local server setup.
|
||
|
|
||
|
```js
|
||
|
import { defineConfig } from "astro/config";
|
||
|
|
||
|
defineConfig({
|
||
|
image: {
|
||
|
endpoint: {
|
||
|
route: "/image",
|
||
|
entrypoint: "./src/image_endpoint.ts"
|
||
|
}
|
||
|
},
|
||
|
})
|
||
|
```
|