again
This commit is contained in:
parent
f7b15b2961
commit
00f6607e06
@ -348,11 +348,11 @@ app.post('/admin/expire-timer', (req, res) => {
|
|||||||
// -----------------------------
|
// -----------------------------
|
||||||
// SERVE REACT BUILD
|
// SERVE REACT BUILD
|
||||||
// -----------------------------
|
// -----------------------------
|
||||||
app.use(express.static(path.join(__dirname, 'client', 'build')));
|
app.use(express.static(path.join(__dirname, 'build')));
|
||||||
|
|
||||||
// Catch-all to serve index.html for any unknown route
|
// Catch-all to serve index.html for any unknown route
|
||||||
app.get('*', (req, res) => {
|
app.get('*', (req, res) => {
|
||||||
res.sendFile(path.join(__dirname, 'client', 'build', 'index.html'));
|
res.sendFile(path.join(__dirname, 'build', 'index.html'));
|
||||||
});
|
});
|
||||||
|
|
||||||
// Start server
|
// Start server
|
||||||
|
Loading…
x
Reference in New Issue
Block a user