mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
add route for env.js
This commit is contained in:
@@ -20,6 +20,10 @@ child_process.execSync('react-env', {
|
||||
|
||||
app.use(express.static(path.join(__dirname, 'build')));
|
||||
|
||||
app.get('/env.js', function (req, res) {
|
||||
res.sendFile(path.join(__dirname, 'public', 'env.js'));
|
||||
});
|
||||
|
||||
app.get('/*', function (req, res) {
|
||||
res.sendFile(path.join(__dirname, 'build', 'index.html'));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user