const ssrFunction = require ( 'firebase-functions' ) ; const ngApp = require ( './../../dist/server' ) . default ; const runtimeOpts = { memory : '512MB' } ; exports . ssr = ssrFunction . runWith ( runtimeOpts ) . https . onRequest ( ngApp ) ;