Please do not edit any path, we just need to copy the dist folder from src directory to function directory using cp-angular.js file and that code I have already shared in the post and then in the function package.json file. You need to change build command like this “build”: “node cp-angular && tsc”. So please do exact following steps which is mention in the content and your Angular Universal app will deploy successfully in Cloud Function.

I am Full Stack Developer and Data Scientist, I have worked some of the biggest client’s project (eg. Walmart, Cisco, Uber, Apple, JP Morgan, Capital One etc).

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store