This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import express from 'express';
|
||||
import path from 'path';
|
||||
import * as path from 'path';
|
||||
import nodemailer from 'nodemailer';
|
||||
import cors from 'cors';
|
||||
import dotenv from 'dotenv';
|
||||
import * as dotenv from 'dotenv';
|
||||
import helmet from 'helmet';
|
||||
import rateLimit from 'express-rate-limit';
|
||||
|
||||
@@ -98,7 +98,7 @@ app.use(express.static(distPath));
|
||||
|
||||
// The "catchall" handler: for any request that doesn't
|
||||
// match one above, send back React's index.html file.
|
||||
app.get('(.*)', (req, res) => {
|
||||
app.get('/:any*', (req, res) => {
|
||||
res.sendFile(path.join(distPath, 'index.html'));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user