I have a nodejs with express server. I would like to server a create react app from the server. Is this possible with out building the react app?
Example from a project im working on right now.
I server a built react app like this...
//// Server static resources.
ROUTER.use('/static', EXPRESS.static(PATH.join(__dirname, '../', '../', 'project', 'build', 'static')));
//// Server built react app.
ROUTER.get('/', function(req, res) {
res.sendFile( PATH.join(__dirname, '../', '../', 'project', 'build', 'index.html' ));
});
Any way I can server the react app without building it? Something like...
ROUTER.get('/', function(req, res) {
//redirect to loopback port for react app.
});