From 6f7b0dc9a908b38cd1582c2f511c1c8f935f3741 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Fri, 16 Jan 2026 13:31:31 +0100 Subject: [PATCH] build --- server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.ts b/server.ts index a9d1acb..8e7d450 100644 --- a/server.ts +++ b/server.ts @@ -1,6 +1,6 @@ import express from 'express'; import * as path from 'path'; -import nodemailer from 'nodemailer'; +import * as nodemailer from 'nodemailer'; import cors from 'cors'; import * as dotenv from 'dotenv'; import helmet from 'helmet'; @@ -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('/:any*', (req, res) => { +app.get(/.*/, (req, res) => { res.sendFile(path.join(distPath, 'index.html')); });