mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 23:30:10 +00:00
11 lines
265 B
JavaScript
11 lines
265 B
JavaScript
|
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(3003);
|