From 4e9a3ac0bd30b4013ac0b2caf068552258dfe6d9 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Fri, 25 Oct 2024 14:17:36 +0100 Subject: [PATCH] feat: update `astro add vercel` (#12268) --- .changeset/loud-cougars-grow.md | 7 +++++++ packages/astro/src/cli/add/index.ts | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changeset/loud-cougars-grow.md diff --git a/.changeset/loud-cougars-grow.md b/.changeset/loud-cougars-grow.md new file mode 100644 index 0000000000..3e51ae4d9c --- /dev/null +++ b/.changeset/loud-cougars-grow.md @@ -0,0 +1,7 @@ +--- +'astro': major +--- + +The command `astro add vercel` now updates the configuration file differently, and adds `@astrojs/vercel` as module to import. + +This is a breaking change because it requires the version `8.*` of `@astrojs/vercel`. diff --git a/packages/astro/src/cli/add/index.ts b/packages/astro/src/cli/add/index.ts index 11ddaffbe7..caa6c38e74 100644 --- a/packages/astro/src/cli/add/index.ts +++ b/packages/astro/src/cli/add/index.ts @@ -89,7 +89,7 @@ export default async function seed() { const OFFICIAL_ADAPTER_TO_IMPORT_MAP: Record = { netlify: '@astrojs/netlify', - vercel: '@astrojs/vercel/serverless', + vercel: '@astrojs/vercel', cloudflare: '@astrojs/cloudflare', node: '@astrojs/node', };