diff --git a/.changeset/pretty-hats-smash.md b/.changeset/pretty-hats-smash.md new file mode 100644 index 000000000000..e679937584b2 --- /dev/null +++ b/.changeset/pretty-hats-smash.md @@ -0,0 +1,5 @@ +--- +'@astrojs/vercel': patch +--- + +Fix critical build regression. `@vercel/nft` is excluded from the bundle automatically. diff --git a/packages/integrations/vercel/src/edge/adapter.ts b/packages/integrations/vercel/src/edge/adapter.ts index 3c2d39116e95..c9febbffeca5 100644 --- a/packages/integrations/vercel/src/edge/adapter.ts +++ b/packages/integrations/vercel/src/edge/adapter.ts @@ -66,6 +66,9 @@ export default function vercelEdge({ }, vite: { define: viteDefine, + ssr: { + external: ['@vercel/nft'] + } }, ...getImageConfig(imageService, imagesConfig, command), }); diff --git a/packages/integrations/vercel/src/serverless/adapter.ts b/packages/integrations/vercel/src/serverless/adapter.ts index 79e0a91ae235..d0c65d9e2147 100644 --- a/packages/integrations/vercel/src/serverless/adapter.ts +++ b/packages/integrations/vercel/src/serverless/adapter.ts @@ -94,6 +94,9 @@ export default function vercelServerless({ }, vite: { define: viteDefine, + ssr: { + external: ['@vercel/nft'] + } }, ...getImageConfig(imageService, imagesConfig, command), });