I'm trying to host an Angular app in Google cloud app engine. Using express to serve the content and static should come from the google CDN.
Dist is built and delivered to the CDN. CDN bucket has been shared as well.
I got it all working as a basic express app serving static content from the local ./dist folder. How to configure this to work against CDN?
'use strict';
var express = require('express');
var app = express();
app.use(express.static('dist'));
app.get('/', function (req, res) {
res.render('index.html');
});
var server = app.listen(process.env.PORT || '8080', function () {
console.log('App listening on port %s', server.address().port);
console.log('Press Ctrl+C to quit.');
});
Appreciate any pointers.
Thanks !!