How to deploy SSR and Prerender app in Firebase?

How to deploy angular 9 universal SSR and Prerender app in Firebase hosting?

Source: Angular Questions