From 429be8cc3ed0623df4fdca76f1531265f5ba5dfc Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Mon, 18 Dec 2023 22:41:01 +0100 Subject: [PATCH] fix: update netlify import (#9461) * fix: update netlify import * fix: update one comment --- .changeset/friendly-tables-worry.md | 5 +++++ packages/astro/src/@types/astro.ts | 2 +- packages/astro/src/cli/add/index.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/friendly-tables-worry.md diff --git a/.changeset/friendly-tables-worry.md b/.changeset/friendly-tables-worry.md new file mode 100644 index 000000000000..fbcfe07b6818 --- /dev/null +++ b/.changeset/friendly-tables-worry.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +update import created for `astro create netlify` diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts index fa8c33920ac0..9df1b2bf12b3 100644 --- a/packages/astro/src/@types/astro.ts +++ b/packages/astro/src/@types/astro.ts @@ -677,7 +677,7 @@ export interface AstroUserConfig { * [See our Server-side Rendering guide](https://docs.astro.build/en/guides/server-side-rendering/) for more on SSR, and [our deployment guides](https://docs.astro.build/en/guides/deploy/) for a complete list of hosts. * * ```js - * import netlify from '@astrojs/netlify/functions'; + * import netlify from '@astrojs/netlify'; * { * // Example: Build for Netlify serverless deployment * adapter: netlify(), diff --git a/packages/astro/src/cli/add/index.ts b/packages/astro/src/cli/add/index.ts index 76323ca0b789..06c20eab3b60 100644 --- a/packages/astro/src/cli/add/index.ts +++ b/packages/astro/src/cli/add/index.ts @@ -71,7 +71,7 @@ public-hoist-pattern[]=*lit* `; const OFFICIAL_ADAPTER_TO_IMPORT_MAP: Record = { - netlify: '@astrojs/netlify/functions', + netlify: '@astrojs/netlify', vercel: '@astrojs/vercel/serverless', cloudflare: '@astrojs/cloudflare', node: '@astrojs/node',