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)