diff options
author | 2023-09-29 23:14:40 +0200 | |
---|---|---|
committer | 2023-09-29 23:14:40 +0200 | |
commit | 47ea310f01d06ed1562c790bec348718a2fa8277 (patch) | |
tree | dbbc86f1e85dbef3a5967d4da7added91373f31b /packages/integrations/node | |
parent | db83237dd3690051203461b6449e116737aee389 (diff) | |
download | astro-47ea310f01d06ed1562c790bec348718a2fa8277.tar.gz astro-47ea310f01d06ed1562c790bec348718a2fa8277.tar.zst astro-47ea310f01d06ed1562c790bec348718a2fa8277.zip |
feat: resolve images through the file systems on applicable runtimes (#8698)
* feat: add a node image endpoint
* test: fix
Diffstat (limited to 'packages/integrations/node')
-rw-r--r-- | packages/integrations/node/src/index.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/integrations/node/src/index.ts b/packages/integrations/node/src/index.ts index 5978371e4..1f3707949 100644 --- a/packages/integrations/node/src/index.ts +++ b/packages/integrations/node/src/index.ts @@ -30,8 +30,11 @@ export default function createIntegration(userOptions: UserOptions): AstroIntegr return { name: '@astrojs/node', hooks: { - 'astro:config:setup': ({ updateConfig }) => { + 'astro:config:setup': ({ updateConfig, config }) => { updateConfig({ + image: { + endpoint: config.image.endpoint ?? 'astro/assets/endpoint/node', + }, vite: { ssr: { noExternal: ['@astrojs/node'], |