0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-10 23:01:26 -05:00

fix: update netlify import (#9461)

* fix: update netlify import

* fix: update one comment
This commit is contained in:
Simon Knott 2023-12-18 22:41:01 +01:00 committed by GitHub
parent 047d285be1
commit 429be8cc3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
update import created for `astro create netlify`

View file

@ -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. * [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 * ```js
* import netlify from '@astrojs/netlify/functions'; * import netlify from '@astrojs/netlify';
* { * {
* // Example: Build for Netlify serverless deployment * // Example: Build for Netlify serverless deployment
* adapter: netlify(), * adapter: netlify(),

View file

@ -71,7 +71,7 @@ public-hoist-pattern[]=*lit*
`; `;
const OFFICIAL_ADAPTER_TO_IMPORT_MAP: Record<string, string> = { const OFFICIAL_ADAPTER_TO_IMPORT_MAP: Record<string, string> = {
netlify: '@astrojs/netlify/functions', netlify: '@astrojs/netlify',
vercel: '@astrojs/vercel/serverless', vercel: '@astrojs/vercel/serverless',
cloudflare: '@astrojs/cloudflare', cloudflare: '@astrojs/cloudflare',
node: '@astrojs/node', node: '@astrojs/node',