Skip to content

Commit

Permalink
fix(#7654): exclude @vercel/nft (#7659)
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re authored Jul 14, 2023
1 parent 4f9032b commit 57a5eff
Show file tree
Hide file tree
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
Expand Up @@ -66,6 +66,9 @@ export default function vercelEdge({
},
vite: {
define: viteDefine,
ssr: {
external: ['@vercel/nft']
}
},
...getImageConfig(imageService, imagesConfig, command),
});
Expand Down
3 changes: 3 additions & 0 deletions packages/integrations/vercel/src/serverless/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ export default function vercelServerless({
},
vite: {
define: viteDefine,
ssr: {
external: ['@vercel/nft']
}
},
...getImageConfig(imageService, imagesConfig, command),
});
Expand Down

0 comments on commit 57a5eff

Please sign in to comment.