'Hosting Angular 6 application to firebase

I am trying to hosting Angular 6 application in firebase. Aftter making a project in firebase , i followed the every step in firebase hosting documentation.

https://console.firebase.google.com/project/vision-api-20789/hosting/main

after firebase deploy command i got the 2 urls

but when i go to hosting Url it is redirected to firebase hosting documentaion page.not redirected to my application.



Solution 1:[1]

The issue is that in angular 6 the project files aren't output to the dist folder, in your tsconfig.json change:

"outDir": "./dist/out-tsc",

to:

"outDir": "./dist",

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Kevin192291