2022-01-06 01:26:15 +00:00
|
|
|
//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"));
|
|
|
|
});
|
2024-02-21 12:21:02 +00:00
|
|
|
app.listen(3341);
|