mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
parent
4f9032be7c
commit
57a5eff5ce
3 changed files with 11 additions and 0 deletions
5
.changeset/pretty-hats-smash.md
Normal file
5
.changeset/pretty-hats-smash.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@astrojs/vercel': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix critical build regression. `@vercel/nft` is excluded from the bundle automatically.
|
|
@ -66,6 +66,9 @@ export default function vercelEdge({
|
||||||
},
|
},
|
||||||
vite: {
|
vite: {
|
||||||
define: viteDefine,
|
define: viteDefine,
|
||||||
|
ssr: {
|
||||||
|
external: ['@vercel/nft']
|
||||||
|
}
|
||||||
},
|
},
|
||||||
...getImageConfig(imageService, imagesConfig, command),
|
...getImageConfig(imageService, imagesConfig, command),
|
||||||
});
|
});
|
||||||
|
|
|
@ -94,6 +94,9 @@ export default function vercelServerless({
|
||||||
},
|
},
|
||||||
vite: {
|
vite: {
|
||||||
define: viteDefine,
|
define: viteDefine,
|
||||||
|
ssr: {
|
||||||
|
external: ['@vercel/nft']
|
||||||
|
}
|
||||||
},
|
},
|
||||||
...getImageConfig(imageService, imagesConfig, command),
|
...getImageConfig(imageService, imagesConfig, command),
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue