diff --git a/server/app/serveApp.ts b/server/app/serveApp.ts index 872e973..fd8b111 100644 --- a/server/app/serveApp.ts +++ b/server/app/serveApp.ts @@ -5,4 +5,7 @@ import * as paths from "paths"; export default function serveApp(app: Express) { app.use(serveStatic(paths.appBuildDir)); + app.get("/*", (req, res) => { + res.sendFile(path.join(paths.publicDir, "index.html")); + }); }