diff options
author | 2025-02-21 09:46:52 +0000 | |
---|---|---|
committer | 2025-02-21 09:46:52 +0000 | |
commit | c6bf6b3b210d3cfd7a23d42815b1b5c58099736f (patch) | |
tree | b7557a68a06a32ca794886b8552ba848034ee532 | |
parent | 065157cac73e176cd6da9b8b0a157359a20ebebd (diff) | |
download | astro-c6bf6b3b210d3cfd7a23d42815b1b5c58099736f.tar.gz astro-c6bf6b3b210d3cfd7a23d42815b1b5c58099736f.tar.zst astro-c6bf6b3b210d3cfd7a23d42815b1b5c58099736f.zip |
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>
-rw-r--r-- | .changeset/young-pears-press.md | 5 | ||||
-rw-r--r-- | packages/integrations/node/src/index.ts | 5 |
2 files changed, 9 insertions, 1 deletions
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: { |