fix(#7654): exclude @vercel/nft (#7659)

This commit is contained in:
Nate Moore 2023-07-14 16:01:06 -05:00 committed by GitHub
parent 4f9032be7c
commit 57a5eff5ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/vercel': patch
---
Fix critical build regression. `@vercel/nft` is excluded from the bundle automatically.

View file

@ -66,6 +66,9 @@ export default function vercelEdge({
},
vite: {
define: viteDefine,
ssr: {
external: ['@vercel/nft']
}
},
...getImageConfig(imageService, imagesConfig, command),
});

View file

@ -94,6 +94,9 @@ export default function vercelServerless({
},
vite: {
define: viteDefine,
ssr: {
external: ['@vercel/nft']
}
},
...getImageConfig(imageService, imagesConfig, command),
});