summaryrefslogtreecommitdiff
path: root/packages/integrations/netlify/README.md
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2023-08-10 14:38:51 -0400
committerGravatar GitHub <noreply@github.com> 2023-08-10 14:38:51 -0400
commit2ee418e06ab1f7855dee0078afbad0b06de3b183 (patch)
tree3af0e146c29c9b41ed79b097cc6276dbcb09a402 /packages/integrations/netlify/README.md
parent9cc4e48e6a858d3a12e6373a5e287b32d24a1c5a (diff)
downloadastro-2ee418e06ab1f7855dee0078afbad0b06de3b183.tar.gz
astro-2ee418e06ab1f7855dee0078afbad0b06de3b183.tar.zst
astro-2ee418e06ab1f7855dee0078afbad0b06de3b183.zip
Remove the Nelify Edge adapter (#8029)
Diffstat (limited to 'packages/integrations/netlify/README.md')
-rw-r--r--packages/integrations/netlify/README.md26
1 files changed, 4 insertions, 22 deletions
diff --git a/packages/integrations/netlify/README.md b/packages/integrations/netlify/README.md
index 18ba65cd7..91a0c41d8 100644
--- a/packages/integrations/netlify/README.md
+++ b/packages/integrations/netlify/README.md
@@ -55,28 +55,11 @@ If you prefer to install the adapter manually instead, complete the following tw
});
```
-### Edge Functions
-
-Netlify has two serverless platforms, [Netlify Functions](https://docs.netlify.com/functions/overview/) and [Netlify Edge Functions](https://docs.netlify.com/edge-functions/overview/). With Edge Functions your code is distributed closer to your users, lowering latency.
-
-To deploy with Edge Functions, use `netlify/edge-functions` in the Astro config file instead of `netlify/functions`.
-
-```js ins={3}
-// astro.config.mjs
-import { defineConfig } from 'astro/config';
-import netlify from '@astrojs/netlify/edge-functions';
-
-export default defineConfig({
- output: 'server',
- adapter: netlify(),
-});
-```
-
### Run middleware in Edge Functions
When deploying to Netlify Functions, you can choose to use an Edge Function to run your Astro middleware.
-To enable this, set the `build.excludeMiddleware` Astro config option to `true`:
+To enable this, set the `edgeMiddleware` config option to `true`:
```js ins={9}
// astro.config.mjs
@@ -85,10 +68,9 @@ import netlify from '@astrojs/netlify/functions';
export default defineConfig({
output: 'server',
- adapter: netlify(),
- build: {
- excludeMiddleware: true,
- },
+ adapter: netlify({
+ edgeMiddleware: true,
+ }),
});
```