Skip to content

Commit

Permalink
Updates tp svelte 401
Browse files Browse the repository at this point in the history
  • Loading branch information
yarbsemaj committed Aug 7, 2022
1 parent c1f74e0 commit 96ef763
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 63 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ As SvelteKit is still in early development, there are often breaking changes mad
## Versions
| Adapter Version| Sveltekit Version |
| ---------------| ----------------- |
| 0.11.x | 1.0.0-next.401 |
| 0.10.x | 1.0.0-next.380 |
| 0.9.x | 1.0.0-next.348 |
| 0.6.x - 0.8.x | 1.0.0-next.301 |
Expand Down
124 changes: 62 additions & 62 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yarbsemaj/adapter-lambda",
"version": "0.10.0",
"version": "0.11.0",
"license": "MIT",
"description": "An adapter for [SvelteKit](https://kit.svelte.dev/) for AWS Lambda via Lambda Proxy and API Gateway. [Serverless](https://www.serverless.com/) deployment.",
"repository": {
Expand Down
4 changes: 4 additions & 0 deletions src/serverless.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export async function handler(event) {

let rawURL = `https://${requestContext.domainName}${rawPath}${rawQueryString ? `?${rawQueryString}` : ''}`

app.init({
env: process.env
});

//Render the app
const rendered = await app.respond(new Request(rawURL, {
method: requestContext.http.method,
Expand Down

0 comments on commit 96ef763

Please sign in to comment.