Skip to content

Commit eb44eab

Browse files
authored
feat: resolve images through the file systems on applicable runtimes (#8698)
* feat: add a node image endpoint * test: fix
1 parent fd43986 commit eb44eab

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/adapters/node/src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ export default function createIntegration(userOptions: UserOptions): AstroIntegr
3030
return {
3131
name: '@astrojs/node',
3232
hooks: {
33-
'astro:config:setup': ({ updateConfig }) => {
33+
'astro:config:setup': ({ updateConfig, config }) => {
3434
updateConfig({
35+
image: {
36+
endpoint: config.image.endpoint ?? 'astro/assets/endpoint/node',
37+
},
3538
vite: {
3639
ssr: {
3740
noExternal: ['@astrojs/node'],

0 commit comments

Comments
 (0)