fix: altro bug di route e path #12
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user