Renamed Serverless example startup command to example instead of run-offline

This commit is contained in:
Alexander Cerutti
2022-01-15 23:57:08 +01:00
parent 0a18c5200d
commit ccc781fccd
3 changed files with 2 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ Install the dependencies and run serverless. Installing the dependencies will li
```sh
$ npm install;
$ npm run run-offline;
$ npm run example;
```
This will start `serverless offline` with an additional host option (mainly for WSL environment).

View File

@@ -10,7 +10,7 @@
"preinstall": "npm run clear:deps && npm unlink --no-save passkit-generator",
"postinstall": "npm --prefix ../.. run build && npm --prefix ../.. link && npm link passkit-generator",
"clear:deps": "rm -rf node_modules",
"run-offline": "npx serverless offline --host 0.0.0.0; :'specifying host due to WSL limits'"
"example": "npx serverless offline --host 0.0.0.0; :'specifying host due to WSL limits'"
},
"dependencies": {
"aws-sdk": "^2.1058.0",

View File

@@ -51,8 +51,6 @@ export async function pkpasses(event: ALBEvent) {
return err;
}
console.log(event.queryStringParameters);
const [certificates, iconFromModel, s3] = await Promise.all([
getCertificates(),
getSpecificFileInModel(