Skip to content

Commit

Permalink
fix(#7654): exclude @vercel/nft (#7659)
Browse files Browse the repository at this point in the history
natemoo-re authored Jul 14, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 4f9032b commit 57a5eff
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/pretty-hats-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/vercel': patch
---

Fix critical build regression. `@vercel/nft` is excluded from the bundle automatically.
3 changes: 3 additions & 0 deletions packages/integrations/vercel/src/edge/adapter.ts
Original file line number Diff line number Diff line change
@@ -66,6 +66,9 @@ export default function vercelEdge({
},
vite: {
define: viteDefine,
ssr: {
external: ['@vercel/nft']
}
},
...getImageConfig(imageService, imagesConfig, command),
});
3 changes: 3 additions & 0 deletions packages/integrations/vercel/src/serverless/adapter.ts
Original file line number Diff line number Diff line change
@@ -94,6 +94,9 @@ export default function vercelServerless({
},
vite: {
define: viteDefine,
ssr: {
external: ['@vercel/nft']
}
},
...getImageConfig(imageService, imagesConfig, command),
});

0 comments on commit 57a5eff

Please sign in to comment.