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 {
|
return {
|
||||||
name: '@astrojs/node',
|
name: '@astrojs/node',
|
||||||
hooks: {
|
hooks: {
|
||||||
|
'astro:config:setup': ({ updateConfig }) => {
|
||||||
|
updateConfig({
|
||||||
|
vite: {
|
||||||
|
ssr: {
|
||||||
|
noExternal: ['@astrojs/node']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
'astro:config:done': ({ setAdapter, config }) => {
|
'astro:config:done': ({ setAdapter, config }) => {
|
||||||
needsBuildConfig = !config.build?.server;
|
needsBuildConfig = !config.build?.server;
|
||||||
_options = {
|
_options = {
|
||||||
|
|
Loading…
Reference in a new issue