Guy Shechter
07/26/2021, 7:33 PMroutes: {
'GET /': 'src/lambda.handler',
},
I used to be able to do this:
defaultFunctionProps: {
srcPath: 'src',
},
routes: {
'GET /': 'lambda.handler',
},
but now, it throws an error:
Error: Cannot find a "tsconfig.json" in the function's srcPath: /src
Frank
Frank
Frank
tsconfig.json
at the srcPath
. If srcPath
is not provided, SST looks for it at the root.