10 lines
321 B
JavaScript
10 lines
321 B
JavaScript
//simple express server to run frontend production build;
|
|
const express = require("express");
|
|
const path = require("path");
|
|
const app = express();
|
|
app.use(express.static(path.join(__dirname, "build")));
|
|
app.get("/*", function (req, res) {
|
|
res.sendFile(path.join(__dirname, "build", "index.html"));
|
|
});
|
|
app.listen(3333);
|