mirror of
https://github.com/cheveguerra/Whaticket.git
synced 2026-04-18 03:29:14 +00:00
Initial commit
This commit is contained in:
9
frontend/server.js
Normal file
9
frontend/server.js
Normal file
@@ -0,0 +1,9 @@
|
||||
//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);
|
||||
Reference in New Issue
Block a user