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:
parent
1f57c0ca64
commit
5c0c6e1ac6
2 changed files with 14 additions and 0 deletions
5
.changeset/afraid-baboons-return.md
Normal file
5
.changeset/afraid-baboons-return.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/node': patch
|
||||
---
|
||||
|
||||
Fixes finding the client folder for serving assets
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue