0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00

Mark @astrojs/node to be noExternal (#5114)

* Mark @astrojs/node to be noExternal

* Adding a changeset
This commit is contained in:
Matthew Phillips 2022-10-18 08:47:18 -07:00 committed by GitHub
parent 1f57c0ca64
commit 5c0c6e1ac6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/node': patch
---
Fixes finding the client folder for serving assets

View file

@ -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 = {