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

Upgrade to Node 22 #15

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

```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