geekmidas
07/20/2021, 7:55 AMnew Api(this, 'Api', {
routes: {
'ANY /any': {
function: 'src/lambda/any.handler',
bundle: {
loader: {} // this does not seem to work
}
},
},
});
I get the desired functionality when I use
const func new Function(this, 'Function', {
handler: 'src/lambda/any.handler',
bundle: {
loader: {} // it works here
}
});
new Api(this, 'Api', {
routes: {
'ANY /any': {
function: func
},
},
});
I haven't had time to debug this issue.Frank
Frank
function: 'src/lambda/any.handler',
bundle: {
loader: {} // this does not seem to work
}
try:
handler: 'src/lambda/any.handler',
bundle: {
loader: {} // this does not seem to work
}