Skip to content

Commit

Permalink
Use config for endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Dec 3, 2024
1 parent 4e4f57d commit 85298fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/assets/endpoint/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function ensureImageEndpointRoute(
mode: 'dev' | 'build',
cwd?: string,
) {
if (!manifest.routes.some((route) => route.route === '/_image')) {
if (!manifest.routes.some((route) => route.route === settings.config.image.endpoint.route)) {
manifest.routes.unshift(getImageEndpointData(settings, mode, cwd));
}
}
Expand Down

0 comments on commit 85298fe

Please sign in to comment.