From 5c0c6e1ac67e6341625f028794986700197334ae Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Tue, 18 Oct 2022 08:47:18 -0700 Subject: [PATCH] Mark @astrojs/node to be noExternal (#5114) * Mark @astrojs/node to be noExternal * Adding a changeset --- .changeset/afraid-baboons-return.md | 5 +++++ packages/integrations/node/src/index.ts | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 .changeset/afraid-baboons-return.md 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 = {