Skip to content

Commit

Permalink
Mark @astrojs/node to be noExternal (#5114)
Browse files Browse the repository at this point in the history
* Mark @astrojs/node to be noExternal

* Adding a changeset
  • Loading branch information
matthewp authored Oct 18, 2022
1 parent 1f57c0c commit 5c0c6e1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-baboons-return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/node': patch
---

Fixes finding the client folder for serving assets
9 changes: 9 additions & 0 deletions packages/integrations/node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 5c0c6e1

Please sign in to comment.