From f33ac47133072f6ba9a9e2b884f277ed5ca4a057 Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Mon, 3 Apr 2023 02:55:55 +0200 Subject: [PATCH] fix: altro bug di route e path --- server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.ts b/server.ts index 1928e11..cb261d3 100644 --- a/server.ts +++ b/server.ts @@ -98,8 +98,8 @@ async function createProductionRouter(db: DatabaseConnection) { res.send(finalHtml) } - r.get(process.env.BASE_URL ?? '/', handleSSR) - r.use(process.env.BASE_URL ?? '/', express.static('dist/entry-client')) + r.get('/', handleSSR) + r.use('/', express.static('dist/entry-client')) r.use('*', handleSSR)