-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for Netlify Edge Functions (#4657)
* feat: add support for Netlify Edge Functions * docs: update readme * chore: add changeset * fix: use early return for static files * Apply suggestions from code review Co-authored-by: Kyle Rollins <[email protected]> * fix: wrap exists check around _redirects copy * document edge in example config * Apply suggestions from code review Co-authored-by: Rich Harris <[email protected]> * Update packages/adapter-netlify/README.md Co-authored-by: Matt Kane <[email protected]> Co-authored-by: Kyle Rollins <[email protected]> Co-authored-by: Rich Harris <[email protected]>
- Loading branch information
1 parent
d723e87
commit 41db4a3
Showing
6 changed files
with
267 additions
and
92 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,5 @@ | ||
--- | ||
'@sveltejs/adapter-netlify': patch | ||
--- | ||
|
||
Adds support for Netlify Edge Functions |
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,10 @@ | ||
declare module '0SERVER' { | ||
export { Server } from '@sveltejs/kit'; | ||
} | ||
|
||
declare module 'MANIFEST' { | ||
import { SSRManifest } from '@sveltejs/kit'; | ||
|
||
export const manifest: SSRManifest; | ||
export const prerendered: Set<string>; | ||
} |
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,4 +1,5 @@ | ||
import { Adapter } from '@sveltejs/kit'; | ||
|
||
declare function plugin(opts?: { split?: boolean }): Adapter; | ||
declare function plugin(opts?: { split?: boolean; edge?: boolean }): Adapter; | ||
|
||
export = plugin; |
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
Oops, something went wrong.