File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 2020 },
2121 "workspaces" : [
2222 " packages/*"
23- ],
24- "dependencies" : {
25- "@baselime/lambda-node-opentelemetry" : " ^0.1.4"
26- }
23+ ]
2724}
Original file line number Diff line number Diff line change @@ -13,8 +13,9 @@ export default {
1313 timeout : 20 ,
1414 memorySize : 512 ,
1515 tracing : 'pass_through' ,
16+ runtime : "nodejs18.x" ,
1617 nodejs : {
17- format : "cjs "
18+ format : "esm "
1819 }
1920 } ) ;
2021 app . stack ( API ) ;
Original file line number Diff line number Diff line change @@ -29,7 +29,13 @@ export function API({ stack }: StackContext) {
2929 const api = new Api ( stack , "api" , {
3030 defaults : {
3131 function : {
32+
3233 bind : [ bus ] ,
34+ nodejs : {
35+ esbuild : {
36+ external : [ "@baselime/lambda-node-opentelemetry" ]
37+ }
38+ }
3339 } ,
3440 } ,
3541 routes : {
You can’t perform that action at this time.
0 commit comments