feat: minimal demo page (#644)

* minimal

* eslint-browser

* dynamic port, reconnect socket, msTo string without Date

* 404 on external not found
This commit is contained in:
Alex Christoffer Rasmussen
2023-12-14 13:27:18 +01:00
committed by GitHub
parent 5a2f711eab
commit 8756b396cc
4 changed files with 100 additions and 0 deletions
+3
View File
@@ -65,6 +65,9 @@ app.use('/playback', playbackRouter);
// serve static - css
app.use('/external', express.static(externalsStartDirectory));
app.use('/external', (req, res) => {
res.status(404).send(`${req.originalUrl} not found`);
});
// serve static - react, in dev/test mode we fetch the React app from module
const reactAppPath = join(currentDirectory, resolvedPath());