From 6f4dfa22270232806afb26c0906938ba1b7c1fa6 Mon Sep 17 00:00:00 2001 From: Maciej Ziarkowski Date: Wed, 14 Aug 2019 14:17:47 +0100 Subject: [PATCH] Handle invalid URLs with the frontend 404 page --- app/src/server.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/server.tsx b/app/src/server.tsx index ce807088..3d46d6ab 100644 --- a/app/src/server.tsx +++ b/app/src/server.tsx @@ -158,4 +158,7 @@ server.use('/tiles', tileserver); server.use('/api', apiServer); +// use the frontend route for anything else - will presumably show the 404 page +server.use(frontendRoute); + export default server;