fix: altro bug di route e path

This commit is contained in:
2023-04-03 02:55:55 +02:00
parent 3a080f0ddd
commit f33ac47133
+2 -2
View File
@@ -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)