DEV Community

loading...

Discussion on: How to deploy a webapp to Google Cloud Run with Cloud Build

Collapse
sub8s profile image
Subrahmanya S M

can get more info on Serving VueJS/reactjs/angularjs Builds via Express.js in index.js file?

res.json({
date: today,
up: ${(Date.now() - dateStart) / 1000} seg.
});

for vue js belove thing is not working:

app.use(express.static('./dist'));

app.get('/*', function(req,res) {

res.sendFile(path.join(__dirname,'/dist/index.html'));
});