From 1071c537ac7f067364f0fba3d80952f3871f57f3 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Fri, 16 Jan 2026 12:56:32 +0100 Subject: [PATCH] build --- server.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.ts b/server.ts index fc6270c..a9d1acb 100644 --- a/server.ts +++ b/server.ts @@ -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')); });