Skip to content

Commit c6bf6b3

Browse files
lee-arnoldematipicoflorian-lefebvre
authored
fix: update node image.endpoint config structure (#13190)
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com> Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
1 parent 065157c commit c6bf6b3

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.changeset/young-pears-press.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@astrojs/node': patch
3+
---
4+
5+
Fixes the image endpoint entrypoint

packages/integrations/node/src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ export default function createIntegration(userOptions: UserOptions): AstroIntegr
5050

5151
updateConfig({
5252
image: {
53-
endpoint: config.image.endpoint ?? 'astro/assets/endpoint/node',
53+
endpoint: {
54+
route: config.image.endpoint.route ?? '_image',
55+
entrypoint: config.image.endpoint.entrypoint ?? 'astro/assets/endpoint/node',
56+
},
5457
},
5558
session,
5659
vite: {

0 commit comments

Comments
 (0)