From c6bf6b3b210d3cfd7a23d42815b1b5c58099736f Mon Sep 17 00:00:00 2001 From: Lee Arnold <49072607+lee-arnold@users.noreply.github.com> Date: Fri, 21 Feb 2025 09:46:52 +0000 Subject: fix: update node image.endpoint config structure (#13190) Co-authored-by: Florian Lefebvre Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com> Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com> --- .changeset/young-pears-press.md | 5 +++++ packages/integrations/node/src/index.ts | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changeset/young-pears-press.md diff --git a/.changeset/young-pears-press.md b/.changeset/young-pears-press.md new file mode 100644 index 000000000..bb5eff9e7 --- /dev/null +++ b/.changeset/young-pears-press.md @@ -0,0 +1,5 @@ +--- +'@astrojs/node': patch +--- + +Fixes the image endpoint entrypoint diff --git a/packages/integrations/node/src/index.ts b/packages/integrations/node/src/index.ts index a5dccc0c3..e1cf5e8b5 100644 --- a/packages/integrations/node/src/index.ts +++ b/packages/integrations/node/src/index.ts @@ -50,7 +50,10 @@ export default function createIntegration(userOptions: UserOptions): AstroIntegr updateConfig({ image: { - endpoint: config.image.endpoint ?? 'astro/assets/endpoint/node', + endpoint: { + route: config.image.endpoint.route ?? '_image', + entrypoint: config.image.endpoint.entrypoint ?? 'astro/assets/endpoint/node', + }, }, session, vite: { -- cgit v1.2.3