-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the Nelify Edge adapter (#8029)
- Loading branch information
Showing
28 changed files
with
27 additions
and
543 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
'@astrojs/netlify': major | ||
--- | ||
|
||
Remove the Netlify Edge adapter | ||
|
||
`@astrojs/netlify/functions` now supports Edge middleware, so a separate adapter for Edge itself (deploying your entire app to the edge) is no longer necessary. Please update your Astro config to reflect this change: | ||
|
||
```diff | ||
// astro.config.mjs | ||
import { defineConfig } from 'astro/config'; | ||
- import netlify from '@astrojs/netlify/edge'; | ||
+ import netlify from '@astrojs/netlify/functions'; | ||
|
||
export default defineConfig({ | ||
output: 'server', | ||
adapter: netlify({ | ||
+ edgeMiddleware: true | ||
}), | ||
}); | ||
``` | ||
|
||
This adapter had several known limitations and compatibility issues that prevented many people from using it in production. To reduce maintenance costs and because we have a better story with Serveless + Edge Middleware, we are removing the Edge adapter. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
export { netlifyEdgeFunctions } from './integration-edge-functions.js'; | ||
export { netlifyFunctions as default, netlifyFunctions } from './integration-functions.js'; | ||
export { netlifyStatic } from './integration-static.js'; |
98 changes: 0 additions & 98 deletions
98
packages/integrations/netlify/src/integration-edge-functions.ts
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
packages/integrations/netlify/src/netlify-edge-functions.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
packages/integrations/netlify/test/edge-functions/dynamic-import.test.ts
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
packages/integrations/netlify/test/edge-functions/edge-basic.test.ts
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
packages/integrations/netlify/test/edge-functions/fixtures/dynimport/astro.config.mjs
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
packages/integrations/netlify/test/edge-functions/fixtures/dynimport/package.json
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
packages/integrations/netlify/test/edge-functions/fixtures/dynimport/prod.js
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...es/integrations/netlify/test/edge-functions/fixtures/dynimport/src/components/Thing.astro
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
packages/integrations/netlify/test/edge-functions/fixtures/dynimport/src/pages/index.astro
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
packages/integrations/netlify/test/edge-functions/fixtures/edge-basic/astro.config.mjs
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
packages/integrations/netlify/test/edge-functions/fixtures/edge-basic/package.json
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
packages/integrations/netlify/test/edge-functions/fixtures/edge-basic/src/pages/index.astro
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...integrations/netlify/test/edge-functions/fixtures/edge-basic/src/pages/three.md
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
packages/integrations/netlify/test/edge-functions/fixtures/edge-basic/src/pages/two.astro
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.