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