import { FrameworkConfiguration } from 'aurelia-framework' ; import { DATABASE_URL , DATABASE_VERSION } from './database' ; export async function configure ( config ) { let firebase = await import ( 'firebase/app' ) ; await import ( 'firebase/database' ) ; let database = firebase . initializeApp ( { databaseURL : DATABASE_URL } ) . database ( ) . ref ( DATABASE_VERSION ) ; config . container . registerInstance ( 'database' , database ) ; }