project.js can have different endpoints based on local or stage:
{
endpoint: ‘${JOVO_WEBHOOK_URL}’,
stages: {
local: { endpoint: ‘${JOVO_WEBHOOK_URL}’ },
dev: { endpoint: ‘arn:aws:lambda:us-east-2:XXXXXX:function:MyFunction’ }
}
}
How can I get the current endpoint URI from within intent handlers in app.js?