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',