diff options
author | 2023-12-18 22:41:01 +0100 | |
---|---|---|
committer | 2023-12-18 21:41:01 +0000 | |
commit | 429be8cc3ed0623df4fdca76f1531265f5ba5dfc (patch) | |
tree | c3009c5af7c9926e0e88e439b67ed86383c52fac | |
parent | 047d285be1ab764bc82f88b8553b46429c37efca (diff) | |
download | astro-429be8cc3ed0623df4fdca76f1531265f5ba5dfc.tar.gz astro-429be8cc3ed0623df4fdca76f1531265f5ba5dfc.tar.zst astro-429be8cc3ed0623df4fdca76f1531265f5ba5dfc.zip |
fix: update netlify import (#9461)
* fix: update netlify import
* fix: update one comment
-rw-r--r-- | .changeset/friendly-tables-worry.md | 5 | ||||
-rw-r--r-- | packages/astro/src/@types/astro.ts | 2 | ||||
-rw-r--r-- | packages/astro/src/cli/add/index.ts | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/.changeset/friendly-tables-worry.md b/.changeset/friendly-tables-worry.md new file mode 100644 index 000000000..fbcfe07b6 --- /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 fa8c33920..9df1b2bf1 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 76323ca0b..06c20eab3 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<string, string> = { - netlify: '@astrojs/netlify/functions', + netlify: '@astrojs/netlify', vercel: '@astrojs/vercel/serverless', cloudflare: '@astrojs/cloudflare', node: '@astrojs/node', |