text: // Update with your config settings.
  require('dotenv').config();
  const dbConnection = process.env.DATABASE_URL;
  
  module.exports = {
  
    development: {
      client: 'sqlite3',
      connection: {
        filename: './dev.sqlite3'
      },
      useNullAsDefault: true,
      migrations: {
        directory: './migrations'
      },
      seeds: {
        directory: './seeds'
      }
    },
  
    // staging: {
    //   client: 'postgresql',
    //   connection: {
    //     database: 'my_db',
    //     user:     'username',
    //     password: 'password'
    //   },
    //   pool: {
    //     min: 2,
    //     max: 10
    //   },
    //   migrations: {
    //     tableName: 'knex_migrations'
    //   }
    // },
  
    production: {
      client: 'pg',
      connection: dbConnection,
      migrations: {
        tableName: 'knex_migrations',
        directory: './migrations'
      },
      useNullAsDefault: true,
      ssl: true,
    }
  
  };
  