Skip to content

Commit

Permalink
Two minor fixes from Serverless v4 upgrade caught on other MDCT apps (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
peoplespete authored Jan 30, 2025
2 parents 1692bb8 + e82b09f commit 7170eb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions run
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ if ! which yarn > /dev/null ; then
fi

# check serverless is installed globally.
if ! which serverless > /dev/null ; then
echo "installing serverless globally"
yarn global add [email protected]
if ! which serverless > /dev/null || ! serverless --version 2>&1 | grep -q " 4."; then
echo "installing serverless v4 globally"
yarn global add [email protected]
export PATH="$PATH:$(yarn global bin)"
fi

# have to ensure that yarn install is up to date.
Expand Down
2 changes: 1 addition & 1 deletion services/app-api/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ custom:
serverlessPluginTypescript:
tsConfigFileLocation: "./tsconfig.json"
stage: ${sls:stage}
region: ${aws:region}
region: ${self:provider.region}
wafPlugin:
name: ${self:service}-${self:custom.stage}-webacl-waf
wafExcludeRules:
Expand Down

0 comments on commit 7170eb7

Please sign in to comment.