This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Install express server | |
const express = require('express'); | |
const path = require('path'); | |
const app = express(); | |
// Serve only the static files form the dist directory | |
app.use(express.static(__dirname + '/dist/<appName>')); | |
app.get('/*', function(req,res) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Install express server | |
const express = require('express'); | |
const path = require('path'); | |
const app = express(); | |
// Serve only the static files form the dist directory | |
app.use(express.static(__dirname + '/build')); | |
app.get('/*', function(req,res) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Install express server | |
const express = require('express'); | |
const path = require('path'); | |
const app = express(); | |
// Serve only the static files form the dist directory | |
app.use(express.static(__dirname + '/dist')); | |
app.get('/*', function(req,res) { |