diff --git a/.changeset/afraid-baboons-return.md b/.changeset/afraid-baboons-return.md new file mode 100644 index 0000000000..0e27f69fa5 --- /dev/null +++ b/.changeset/afraid-baboons-return.md @@ -0,0 +1,5 @@ +--- +'@astrojs/node': patch +--- + +Fixes finding the client folder for serving assets diff --git a/packages/integrations/node/src/index.ts b/packages/integrations/node/src/index.ts index 095f0b6b02..3bd5168224 100644 --- a/packages/integrations/node/src/index.ts +++ b/packages/integrations/node/src/index.ts @@ -21,6 +21,15 @@ export default function createIntegration(userOptions: UserOptions): AstroIntegr return { name: '@astrojs/node', hooks: { + 'astro:config:setup': ({ updateConfig }) => { + updateConfig({ + vite: { + ssr: { + noExternal: ['@astrojs/node'] + } + } + }); + }, 'astro:config:done': ({ setAdapter, config }) => { needsBuildConfig = !config.build?.server; _options = {