I've removed datasources.json and added a datasources.local.js file.
var postgresURI = process.env.DATABASE_URL;
module.exports = {
db: {
defaultForType: 'postgresql',
connector: 'postgresql',
url: postgresURI
}
};
In model-config.json I have "dataSource": "db" set for all sections.
It throws the following error: User is referencing a dataSource that does not exist: "db".
I understand the error but not why it's being thrown. What I am doing wrong?