I am using stages and my current stage is: local
local - webhook, FileDb
dev - lambda, DynamoDb
\config.js (used for defaults including local)
db: {
FileDb: {
pathToFile: ‘…/db/db.json’,
},
},
\config.dev.js
db: {
DynamoDb: {
tableName: ‘${process.env.TABLE_NAME}’,
},
},
\app.js
const { FileDb } = require(‘jovo-db-filedb’);
const { DynamoDb } = require(‘jovo-db-dynamodb’);
app.use(
new Alexa(),
new JovoDebugger(),
new FileDb(),
new DynamoDb(),
new DashbotAlexa(),
new DashbotGoogleAssistant()
);
If I don’t want to use DynamoDB in local stage why is the load function of the plugin even checking for it?
Do I need to add a fake entry in config.js for DynamoDb?
db: {
FileDb: {
pathToFile: ‘…/db/db.json’,
},
DynamoDb: {
tableName: ‘fake’,
},
},