-
-
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.
Update
adapter-vercel
to use new build output API (#4663)
* start working on v3 filesystem API * fix * support v1 and v3 * implement route splitting * WIP edge support * DYAC * lint * fix config and .vc-config.json * remove catch-all route * fixes * use overrides for prerendered pages * update README * changesets
- Loading branch information
1 parent
b0ffb4d
commit 467cdb9
Showing
11 changed files
with
347 additions
and
102 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-vercel': patch | ||
--- | ||
|
||
Support build output API, with edge functions and code-splitting |
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/kit': patch | ||
--- | ||
|
||
builder.createEntries returns a promise that awaits complete() callbacks |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Server } from 'SERVER'; | ||
import { manifest } from 'MANIFEST'; | ||
|
||
const server = new Server(manifest); | ||
|
||
/** | ||
* @param {Request} request | ||
*/ | ||
export default (request) => { | ||
return server.respond(request, { | ||
getClientAddress() { | ||
return request.headers.get('x-forwarded-for'); | ||
} | ||
}); | ||
}; |
4 changes: 3 additions & 1 deletion
4
packages/adapter-vercel/files/entry.js → packages/adapter-vercel/files/serverless.js
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 was deleted.
Oops, something went wrong.
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.