Posts

Showing posts with the label angular-universal

deploying Angular 6 Universal to GCP App Engine

deploying Angular 6 Universal to GCP App Engine I'm looking for an example project that's using Angular 6 Universal and is successfully deploying to GCP App Engine. I've searched GitHub but can't find an example--the Universal Starter doesn't include deployment. Also, my old Angular 5 Universal config is not working for this new V6 project. The current error is coming from nginx: "502 Bad Gateway" It seems to be the favicon.ico file that's causing the problem--looks like a Node.js issue. I just dealt with this on a pure Node.js project (not Angular) and was able to resolve it, but I can't find the right config in the Angular context. server.ts app.use(favicon('src/favicon.ico')); angular.json (start of it) { "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, "newProjectRoot": "projects", "projects": { "appname": { "root...