File tree Expand file tree Collapse file tree 5 files changed +99
-201
lines changed Expand file tree Collapse file tree 5 files changed +99
-201
lines changed Original file line number Diff line number Diff line change 5252build : src/ cloudformation/ docs/
5353 yarn -D
5454 VITE_BUILD_HASH=$(GIT_HASH ) yarn build
55+ cp -r src/api/resources/ dist/api/resources
5556 sam build --template-file cloudformation/main.yml
5657
5758local :
Original file line number Diff line number Diff line change @@ -127,15 +127,15 @@ Resources:
127127 BuildMethod : esbuild
128128 BuildProperties :
129129 Format : esm
130- Minify : true
130+ Minify : !Equals [!Ref RunEnvironment, 'prod']
131131 OutExtension :
132132 - .js=.mjs
133133 Loader :
134134 - .png=file
135135 - .pkpass=file
136136 - .json=file
137137 Target : " es2022"
138- Sourcemap : false
138+ Sourcemap : !Not [!Equals [!Ref RunEnvironment, 'prod']]
139139 EntryPoints :
140140 - api/lambda.js
141141 External :
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import NodeCache from "node-cache";
2222import { DynamoDBClient } from "@aws-sdk/client-dynamodb" ;
2323import { SecretsManagerClient } from "@aws-sdk/client-secrets-manager" ;
2424import { SESClient } from "@aws-sdk/client-ses" ;
25+ import mobileWalletRoute from "./routes/mobileWallet.js" ;
2526
2627dotenv . config ( ) ;
2728
@@ -117,6 +118,7 @@ async function init() {
117118 api . register ( icalPlugin , { prefix : "/ical" } ) ;
118119 api . register ( iamRoutes , { prefix : "/iam" } ) ;
119120 api . register ( ticketsPlugin , { prefix : "/tickets" } ) ;
121+ api . register ( mobileWalletRoute , { prefix : "/mobileWallet" } ) ;
120122 if ( app . runEnvironment === "dev" ) {
121123 api . register ( vendingPlugin , { prefix : "/vending" } ) ;
122124 }
Original file line number Diff line number Diff line change 4545 "zod-validation-error" : " ^3.3.1"
4646 },
4747 "devDependencies" : {
48- "@tsconfig/node22" : " ^22.0.0"
48+ "@tsconfig/node22" : " ^22.0.0" ,
49+ "nodemon" : " ^3.1.9"
4950 }
5051}
You can’t perform that action at this time.
0 commit comments