blob: e8412e3be83fb07d10c6cb5a77bc776d56c75379 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
---
'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"
}
},
})
```
|