Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy stage production with node16 runtime #7

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ jobs:
entrypoint: /bin/sh
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
STAGE: 'production'
1 change: 0 additions & 1 deletion api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export const post = async function (event: APIGatewayProxyEvent, context: Contex
queryStringParameters: expectedQueryStringParameters,
}
const response = await quoteHandler.handler(newEvent, context)
//throw new Error('fooobar')
// Uniswap interface expects a slightly different response structure, due to unified-routing-api usage.
// Let's mutate it to match the expected response.
const quote = JSON.parse(response.body)
Expand Down
2 changes: 1 addition & 1 deletion api/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ provider:
WEB3_RPC_743111: ${env:WEB3_RPC_743111, ''}
name: aws
region: ${opt:region,env:AWS_REGION,'eu-central-1'}
runtime: nodejs20.x
runtime: nodejs16.x
stage: ${opt:stage,env:STAGE,'dev'}
iam:
role:
Expand Down
Loading