fix: altro bug di route e path #12

Merged
aziis98 merged 1 commits from dev into main 2 years ago

@ -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)

Loading…
Cancel
Save