Skip to content

Commit

Permalink
feat(adapter): AWS Lambda Adapter supports requests via Lambda@edge (#…
Browse files Browse the repository at this point in the history
…1210)

* edge-adaptor

* add env

* Revert "add env"

This reverts commit 9662e57.

* Revert "add env"

This reverts commit 9662e57.

* v0.1

* Revert "edge-adaptor"

This reverts commit ed6b256.

* runtimetest

* WIP: runtime-test

* lint

* build lambda-edge

* ci lambda-edge

* remove gitpod

* test fix

* fix of self check
  • Loading branch information
watany-dev authored Jul 7, 2023
1 parent a8ebb47 commit edca699
Show file tree
Hide file tree
Showing 7 changed files with 808 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,15 @@ jobs:
- run: yarn install --frozen-lockfile
- run: npm run build
- run: npm run test:lambda

lambda-edge:
name: 'Lambda@Edge'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: yarn install --frozen-lockfile
- run: npm run build
- run: npm run test:lambda-edge
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"test:node": "env NAME=Node jest --config ./runtime_tests/node/jest.config.js",
"test:wrangler": "jest --config ./runtime_tests/wrangler/jest.config.js",
"test:lambda": "env NAME=Node jest --config ./runtime_tests/lambda/jest.config.js",
"test:all": "yarn test && yarn test:deno && yarn test:bun && yarn test:fastly && yarn test:lagon && yarn test:node && yarn test:wrangler && yarn test:lambda",
"test:lambda-edge": "env NAME=Node jest --config ./runtime_tests/lambda-edge/jest.config.js",
"test:all": "yarn test && yarn test:deno && yarn test:bun && yarn test:fastly && yarn test:lagon && yarn test:node && yarn test:wrangler && yarn test:lambda && yarn test:lambda-edge",
"lint": "eslint --ext js,ts src .eslintrc.cjs",
"lint:fix": "eslint --ext js,ts src .eslintrc.cjs --fix",
"denoify": "rimraf deno_dist && denoify && rimraf 'deno_dist/**/*.test.ts'",
Expand Down Expand Up @@ -214,6 +215,11 @@
"types": "./dist/types/adapter/vercel/index.d.ts",
"import": "./dist/adapter/vercel/index.js",
"require": "./dist/cjs/adapter/vercel/index.js"
},
"./lambda-edge": {
"types": "./dist/types/adapter/lambda-edge/index.d.ts",
"import": "./dist/adapter/lambda-edge/index.js",
"require": "./dist/cjs/adapter/lambda-edge/index.js"
}
},
"typesVersions": {
Expand Down Expand Up @@ -325,6 +331,9 @@
],
"vercel": [
"./dist/types/adapter/vercel"
],
"lambda-edge": [
"./dist/types/adapter/lambda-edge"
]
}
},
Expand Down
Loading

0 comments on commit edca699

Please sign in to comment.