Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (ctx.req.url.indexOf('/api/') === 0) {
return 'json';
} else {
return 'html';
}
},
};
config.view = nunjucks;
config.sequelize = {
dialect: 'postgres',
database: props['postgres.database'],
host: process.env.POSTGRES_ADDRESS || props['postgres.address'],
port: '5432',
username: props['postgres.username'],
password: props['postgres.password'],
define: {
freezeTableName: true,
underscored: true,
},
};
return config;
};