Skip to content

Commit

Permalink
Merge pull request #15 from pulibrary/14-upgrade-node-22
Browse files Browse the repository at this point in the history
Upgrade to Node 22
  • Loading branch information
eliotjordan authored Dec 19, 2024
2 parents 39b50b7 + 25b10c9 commit cd867f1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
nodejs 22.10.0
yarn 1.22.22
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

Forked from [nulib/serverless-iiif](https://github.com/nulib/serverless-iiif).

### Initial Setup
```sh
brew install aws-sam-cli
asdf install
yarn install
```
## Deployment

* Set up a `figgy-deploy` AWS profile. You can get the AccessID/AccessKey from
Expand Down
10 changes: 5 additions & 5 deletions template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,16 @@ Resources:
Description: Dependencies for IIIF app
ContentUri: ./dependencies
CompatibleRuntimes:
- nodejs14.x
- nodejs22.x
LicenseInfo: "Apache-2.0"
Metadata:
BuildMethod: nodejs14.x
BuildMethod: nodejs22.x
LambdaEdgeFunctionForwardedFor:
Type: AWS::Serverless::Function
Properties:
CodeUri: ./src_edge
Role: !GetAtt LambdaEdgeFunctionRole.Arn
Runtime: nodejs12.x
Runtime: nodejs22.x
Handler: index.viewerRequest
Timeout: 5
AutoPublishAlias: live
Expand Down Expand Up @@ -235,15 +235,15 @@ Resources:
IiifFunction:
Type: "AWS::Serverless::Function"
Properties:
Runtime: nodejs14.x
Runtime: nodejs22.x
Handler: index.handler
MemorySize: !Ref IiifLambdaMemory
Timeout:
Ref: IiifLambdaTimeout
CodeUri: ./src
Layers:
- Ref: Dependencies
- 'arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Node12-x:22'
- 'arn:aws:lambda:us-east-1:464622532012:layer:Datadog-Node22-x:117'
Policies:
- AWSLambdaExecute
- Version: "2012-10-17"
Expand Down

0 comments on commit cd867f1

Please sign in to comment.