Hello guys,
I am trying to migrate my express application with kraken config to serverless, but i have some problems.
I have all routes configured in config.json and they are not working when i start in aws.
Does anyone have some tips?
My handler:
const krakenConfig = kraken({
protocols: {
env: customProtocols.env()
},
onconfig: function (config, next) {
require("./services/config").load(config)
next(null, config)
}
})
app.use(krakenConfig)
module.exports.handler = serverless(app)
Thanks.