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 ```sh
$ npm install; $ npm install;
$ npm run run-offline; $ npm run example;
``` ```
This will start `serverless offline` with an additional host option (mainly for WSL environment). 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", "preinstall": "npm run clear:deps && npm unlink --no-save passkit-generator",
"postinstall": "npm --prefix ../.. run build && npm --prefix ../.. link && npm link passkit-generator", "postinstall": "npm --prefix ../.. run build && npm --prefix ../.. link && npm link passkit-generator",
"clear:deps": "rm -rf node_modules", "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": { "dependencies": {
"aws-sdk": "^2.1058.0", "aws-sdk": "^2.1058.0",

View File

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