From 2a12813af96b206a999fee59f0b8b73fa09bc21b Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Mon, 18 Dec 2023 17:22:02 +0100 Subject: [PATCH 1/2] fix: update netlify import --- .changeset/friendly-tables-worry.md | 5 +++++ packages/astro/src/cli/add/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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/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', From 605c97cfcb6d1221bccf1671d6a7e6e956f40cfd Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Mon, 18 Dec 2023 17:25:18 +0100 Subject: [PATCH 2/2] fix: update one comment --- packages/astro/src/@types/astro.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(),